Skip to content

Commit

Permalink
ASoC: rt5682s: make rt5682s_aif2_dai_ops and rt5682s_soc_component_dev
Browse files Browse the repository at this point in the history
This symbol is not used outside of rt5682s.c, so marks it static.

Fix the following sparse warning:

sound/soc/codecs/rt5682s.c:2848:39: warning: symbol
'rt5682s_soc_component_dev' was not declared. Should it be static?

sound/soc/codecs/rt5682s.c:2842:30: warning: symbol
'rt5682s_aif2_dai_ops' was not declared. Should it be static?

Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
Link: https://lore.kernel.org/r/1631955726-77693-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
Jiapeng Chong authored and broonie committed Sep 20, 2021
1 parent 2266721 commit cf21e11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/codecs/rt5682s.c
Original file line number Diff line number Diff line change
Expand Up @@ -2839,13 +2839,13 @@ const struct snd_soc_dai_ops rt5682s_aif1_dai_ops = {
.set_bclk_ratio = rt5682s_set_bclk1_ratio,
};

const struct snd_soc_dai_ops rt5682s_aif2_dai_ops = {
static const struct snd_soc_dai_ops rt5682s_aif2_dai_ops = {
.hw_params = rt5682s_hw_params,
.set_fmt = rt5682s_set_dai_fmt,
.set_bclk_ratio = rt5682s_set_bclk2_ratio,
};

const struct snd_soc_component_driver rt5682s_soc_component_dev = {
static const struct snd_soc_component_driver rt5682s_soc_component_dev = {
.probe = rt5682s_probe,
.remove = rt5682s_remove,
.suspend = rt5682s_suspend,
Expand Down

0 comments on commit cf21e11

Please sign in to comment.