Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: ti: Mark expected switch fall-throughs

Mark switch cases where we are expecting to fall through.

This patch fixes the following warning (Building: arm):

sound/soc/ti/n810.c: In function ‘n810_ext_control’:
sound/soc/ti/n810.c:48:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
line1l = 1;
~~~~~~~^~~
sound/soc/ti/n810.c:49:2: note: here
case N810_JACK_HP:
^~~~

sound/soc/ti/rx51.c: In function ‘rx51_ext_control’:
sound/soc/ti/rx51.c:57:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
hs = 1;
~~~^~~
sound/soc/ti/rx51.c:58:2: note: here
case RX51_JACK_HP:
^~~~

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Link: https://lore.kernel.org/r/20190729221534.GA18696@embeddedor
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Gustavo A. R. Silva and committed by
Mark Brown
22581e7c ebdd7be5

+2
+1
sound/soc/ti/n810.c
··· 46 46 switch (n810_jack_func) { 47 47 case N810_JACK_HS: 48 48 line1l = 1; 49 + /* fall through */ 49 50 case N810_JACK_HP: 50 51 hp = 1; 51 52 break;
+1
sound/soc/ti/rx51.c
··· 55 55 break; 56 56 case RX51_JACK_HS: 57 57 hs = 1; 58 + /* fall through */ 58 59 case RX51_JACK_HP: 59 60 hp = 1; 60 61 break;