From: Kuninori Morimoto Date: Mon, 24 Oct 2016 00:44:10 +0000 (+0000) Subject: ASoC: soc.h: use bit field for playback/capture_only X-Git-Tag: v4.10-rc1~121^2~3^2~13^6~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1236fa1e3c29922d201da0926aa8d62427f74814;p=thirdparty%2Fkernel%2Flinux.git ASoC: soc.h: use bit field for playback/capture_only Current snd_soc_dai_link is already using many bit fields. Let's use it for playback_only/capture_only too. We can reduce struct size in certain environment. Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- diff --git a/include/sound/soc.h b/include/sound/soc.h index 4f1c784e44f63..3d569307f1e28 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1025,13 +1025,13 @@ struct snd_soc_dai_link { const struct snd_soc_ops *ops; const struct snd_soc_compr_ops *compr_ops; - /* For unidirectional dai links */ - bool playback_only; - bool capture_only; - /* Mark this pcm with non atomic ops */ bool nonatomic; + /* For unidirectional dai links */ + unsigned int playback_only:1; + unsigned int capture_only:1; + /* Keep DAI active over suspend */ unsigned int ignore_suspend:1;