summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-08-01 14:52:41 -0500
committerMark Brown <broonie@kernel.org>2018-08-02 10:46:11 +0100
commitda41787b9f319a7a23fcc8cf65c6ad646803962e (patch)
tree396d81cc2e31a6ed361694f665f16a8531617f73
parent3eb7dbc6d844d2033271434d02ff90ac9b19e393 (diff)
downloadlinux-stable-da41787b9f319a7a23fcc8cf65c6ad646803962e.tar.gz
linux-stable-da41787b9f319a7a23fcc8cf65c6ad646803962e.tar.bz2
linux-stable-da41787b9f319a7a23fcc8cf65c6ad646803962e.zip
ASoC: wm8904: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 115042 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/wm8904.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c
index 9037a35b931d..1965635ec07c 100644
--- a/sound/soc/codecs/wm8904.c
+++ b/sound/soc/codecs/wm8904.c
@@ -1455,6 +1455,7 @@ static int wm8904_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
case SND_SOC_DAIFMT_DSP_B:
aif1 |= 0x3 | WM8904_AIF_LRCLK_INV;
+ /* fall through */
case SND_SOC_DAIFMT_DSP_A:
aif1 |= 0x3;
break;