summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-08-01 14:55:26 -0500
committerMark Brown <broonie@kernel.org>2018-08-02 10:46:15 +0100
commit7a2235ef507822679ac89007a6a37b23f30eed56 (patch)
tree4f1c4b4932eea951fdacd7e1179173fa3f1e62f6 /sound
parentaf5d1d5d4ba71164711025e077511ad48d5690e9 (diff)
downloadlinux-stable-7a2235ef507822679ac89007a6a37b23f30eed56.tar.gz
linux-stable-7a2235ef507822679ac89007a6a37b23f30eed56.tar.bz2
linux-stable-7a2235ef507822679ac89007a6a37b23f30eed56.zip
ASoC: wm9081: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1357430 ("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/wm9081.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm9081.c b/sound/soc/codecs/wm9081.c
index 5a0ea7b3c149..399255d1f78a 100644
--- a/sound/soc/codecs/wm9081.c
+++ b/sound/soc/codecs/wm9081.c
@@ -933,6 +933,7 @@ static int wm9081_set_dai_fmt(struct snd_soc_dai *dai,
switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
case SND_SOC_DAIFMT_DSP_B:
aif2 |= WM9081_AIF_LRCLK_INV;
+ /* fall through */
case SND_SOC_DAIFMT_DSP_A:
aif2 |= 0x3;
break;