diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-20 21:23:50 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-11-20 22:28:34 +0300 |
commit | 3371c6f9f4115d8949e093be8299a9c1ebe29137 (patch) | |
tree | 2a82019d7bf465be0d3169d22e9b905c136fdf79 /sound/soc/codecs/cs42l52.c | |
parent | f805e7e09c8f6d56f3e9bd2e7cec729f9d0855d0 (diff) | |
download | linux-3371c6f9f4115d8949e093be8299a9c1ebe29137.tar.xz |
ASoC: codecs: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements instead of just
letting the code fall through, and also add fallthrough pseudo-keywords
in places where the code is intended to fall through to the next case.
Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/d17b4d8300dbb6aff0d055b06b487c96ca264757.1605896059.git.gustavoars@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs42l52.c')
-rw-r--r-- | sound/soc/codecs/cs42l52.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs42l52.c b/sound/soc/codecs/cs42l52.c index f772628f233e..796b894c390f 100644 --- a/sound/soc/codecs/cs42l52.c +++ b/sound/soc/codecs/cs42l52.c @@ -944,6 +944,7 @@ static int cs42l52_beep_event(struct input_dev *dev, unsigned int type, case SND_BELL: if (hz) hz = 261; + break; case SND_TONE: break; default: |