ASoC: ac108: fix build warning about '-Wimplict-fallthrough'
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 9 Jul 2020 10:04:51 +0000 (19:04 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Wed, 23 Nov 2022 02:31:04 +0000 (11:31 +0900)
Fix build warning about '-Wimplicit-fallthrough'.

In file included from ./include/linux/acpi.h:15,
                 from ./include/linux/i2c.h:13,
                 from sound/soc/codecs/ac108.c:21:
sound/soc/codecs/ac108.c: In function 'ac108_set_fmt':
./include/linux/device.h:1758:5: warning: this statement may fall through [-Wimplicit-fallthrough=]

Change-Id: I89c995e338d2c2afbcc61d49495b406df76e17ab
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
sound/soc/codecs/ac108.c

index 82f976d..0609bef 100644 (file)
@@ -865,6 +865,7 @@ static int ac108_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) {
                        /* TODO: Both cpu_dai and codec_dai(AC108) be set as slave in DTS */
                        dev_dbg(dai->dev, "used as slave when AC101 is master\n");
                }
+               /* fall through */
        case SND_SOC_DAIFMT_CBS_CFS:    /*AC108 Slave*/
                dev_dbg(dai->dev, "AC108 set to work as Slave\n");
                /**