diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-11-08 15:04:38 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-11-08 16:28:27 -0500 |
commit | cdf45e49adb2ba39e6e270717b86fe844e4c59c8 (patch) | |
tree | dcfaab97f77ecb77098dd720617f04dd22dea2e1 | |
parent | b0e92b515e2cbcad923ee1211f59c4b62e94ee37 (diff) |
ASoC: wm8993: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 115168
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/wm8993.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8993.c b/sound/soc/codecs/wm8993.c index 195f7bf6eb22..830ffd80de4a 100644 --- a/sound/soc/codecs/wm8993.c +++ b/sound/soc/codecs/wm8993.c | |||
@@ -1076,6 +1076,7 @@ static int wm8993_set_sysclk(struct snd_soc_dai *codec_dai, | |||
1076 | switch (clk_id) { | 1076 | switch (clk_id) { |
1077 | case WM8993_SYSCLK_MCLK: | 1077 | case WM8993_SYSCLK_MCLK: |
1078 | wm8993->mclk_rate = freq; | 1078 | wm8993->mclk_rate = freq; |
1079 | /* fall through */ | ||
1079 | case WM8993_SYSCLK_FLL: | 1080 | case WM8993_SYSCLK_FLL: |
1080 | wm8993->sysclk_source = clk_id; | 1081 | wm8993->sysclk_source = clk_id; |
1081 | break; | 1082 | break; |
@@ -1123,6 +1124,7 @@ static int wm8993_set_dai_fmt(struct snd_soc_dai *dai, | |||
1123 | switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) { | 1124 | switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) { |
1124 | case SND_SOC_DAIFMT_DSP_B: | 1125 | case SND_SOC_DAIFMT_DSP_B: |
1125 | aif1 |= WM8993_AIF_LRCLK_INV; | 1126 | aif1 |= WM8993_AIF_LRCLK_INV; |
1127 | /* fall through */ | ||
1126 | case SND_SOC_DAIFMT_DSP_A: | 1128 | case SND_SOC_DAIFMT_DSP_A: |
1127 | aif1 |= 0x18; | 1129 | aif1 |= 0x18; |
1128 | break; | 1130 | break; |