summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorGustavo A. R. Silva2018-08-01 21:51:18 +0200
committerMark Brown2018-08-02 11:46:10 +0200
commit85e7e77079f3201799467803f6c8533a9921e32d (patch)
tree4a48003dc983fa94ce0812f99aacadbe899fd386 /sound
parentASoC: rt5677: Mark expected switch fall-through (diff)
downloadkernel-qcow2-linux-85e7e77079f3201799467803f6c8533a9921e32d.tar.gz
kernel-qcow2-linux-85e7e77079f3201799467803f6c8533a9921e32d.tar.xz
kernel-qcow2-linux-85e7e77079f3201799467803f6c8533a9921e32d.zip
ASoC: wm8955: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 115047 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8955.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8955.c b/sound/soc/codecs/wm8955.c
index ba44e3d6c1e0..cd204f79647d 100644
--- a/sound/soc/codecs/wm8955.c
+++ b/sound/soc/codecs/wm8955.c
@@ -686,6 +686,7 @@ static int wm8955_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
case SND_SOC_DAIFMT_DSP_B:
aif |= WM8955_LRP;
+ /* fall through */
case SND_SOC_DAIFMT_DSP_A:
aif |= 0x3;
break;