ASoC: ac108: fix build warning about '-Wimplict-fallthrough' 21/238221/2
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 9 Jul 2020 10:04:51 +0000 (19:04 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 10 Jul 2020 01:53:33 +0000 (01:53 +0000)
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: I9f098eee46d2baa500ad2b7624cfff0ebbc81b40
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");
                /**