aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-11-08 15:04:43 -0500
committerMark Brown <broonie@kernel.org>2017-11-08 16:28:31 -0500
commit9d94305a7df4ce6af5070baa92cc784786b748b9 (patch)
tree07c21bbf1f6af82c77422cd62485f796fce0d2ff
parentcdf45e49adb2ba39e6e270717b86fe844e4c59c8 (diff)
ASoC: wm8994: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 402005 Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/wm8994.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 3896523b71e9..f91b49e1ece3 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -860,6 +860,7 @@ static void vmid_reference(struct snd_soc_codec *codec)
860 switch (wm8994->vmid_mode) { 860 switch (wm8994->vmid_mode) {
861 default: 861 default:
862 WARN_ON(NULL == "Invalid VMID mode"); 862 WARN_ON(NULL == "Invalid VMID mode");
863 /* fall through */
863 case WM8994_VMID_NORMAL: 864 case WM8994_VMID_NORMAL:
864 /* Startup bias, VMID ramp & buffer */ 865 /* Startup bias, VMID ramp & buffer */
865 snd_soc_update_bits(codec, WM8994_ANTIPOP_2, 866 snd_soc_update_bits(codec, WM8994_ANTIPOP_2,
@@ -2654,6 +2655,7 @@ static int wm8994_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
2654 case SND_SOC_DAIFMT_DSP_B: 2655 case SND_SOC_DAIFMT_DSP_B:
2655 aif1 |= WM8994_AIF1_LRCLK_INV; 2656 aif1 |= WM8994_AIF1_LRCLK_INV;
2656 lrclk |= WM8958_AIF1_LRCLK_INV; 2657 lrclk |= WM8958_AIF1_LRCLK_INV;
2658 /* fall through */
2657 case SND_SOC_DAIFMT_DSP_A: 2659 case SND_SOC_DAIFMT_DSP_A:
2658 aif1 |= 0x18; 2660 aif1 |= 0x18;
2659 break; 2661 break;