projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
641f7f2
)
ASoC: rt274: Add fall-through annotations
author
Takashi Iwai
<
[email protected]
>
Thu, 4 Oct 2018 18:30:04 +0000
(20:30 +0200)
committer
Mark Brown
<
[email protected]
>
Fri, 5 Oct 2018 11:38:20 +0000
(12:38 +0100)
As a preparatory patch for the upcoming -Wimplicit-fallthrough
compiler checks, add the "fall through" annotations in rt274 driver.
Signed-off-by: Takashi Iwai <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/rt274.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/rt274.c
b/sound/soc/codecs/rt274.c
index d88e673410835205f2a4a0ae7e30717335dbb679..0ef966d56bac300f00f1fac7aa92f54fa9949e7e 100644
(file)
--- 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);