diff options
author | 2018-10-04 20:30:04 +0200 | |
---|---|---|
committer | 2018-10-05 12:38:20 +0100 | |
commit | 0beeb4baf56bd9deb920712a4034541fb33bbbe0 (patch) | |
tree | 64f86821aa601731cc1a14cbd78aa35b680550dc /sound | |
parent | ASoC: pcm186x: Use the standard fall-through annotation (diff) | |
download | linux-0beeb4baf56bd9deb920712a4034541fb33bbbe0.tar.gz linux-0beeb4baf56bd9deb920712a4034541fb33bbbe0.tar.bz2 linux-0beeb4baf56bd9deb920712a4034541fb33bbbe0.zip |
ASoC: rt274: Add fall-through annotations
As a preparatory patch for the upcoming -Wimplicit-fallthrough
compiler checks, add the "fall through" annotations in rt274 driver.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/rt274.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt274.c b/sound/soc/codecs/rt274.c index d88e67341083..0ef966d56bac 100644 --- a/sound/soc/codecs/rt274.c +++ b/sound/soc/codecs/rt274.c @@ -755,6 +755,7 @@ static int rt274_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source, break; default: dev_warn(component->dev, "invalid pll source, use BCLK\n"); + /* fall through */ case RT274_PLL2_S_BCLK: snd_soc_component_update_bits(component, RT274_PLL2_CTRL, RT274_PLL2_SRC_MASK, RT274_PLL2_SRC_BCLK); @@ -782,6 +783,7 @@ static int rt274_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source, break; default: dev_warn(component->dev, "invalid freq_in, assume 4.8M\n"); + /* fall through */ case 100: snd_soc_component_write(component, 0x7a, 0xaab6); snd_soc_component_write(component, 0x7b, 0x0301); |