diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2021-09-18 11:02:06 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-09-20 14:38:09 +0200 |
commit | cf21e114f6f44fdb06b7ceaaee5f2c360883bd74 (patch) | |
tree | 4c78249ee1823cdf15b71b571cd3cdd7b46e9271 /sound/soc/codecs/rt5682s.c | |
parent | Merge series "ASoC: SOF: ipc: Small cleanups for message handler functions" f... (diff) | |
download | linux-cf21e114f6f44fdb06b7ceaaee5f2c360883bd74.tar.xz linux-cf21e114f6f44fdb06b7ceaaee5f2c360883bd74.zip |
ASoC: rt5682s: make rt5682s_aif2_dai_ops and rt5682s_soc_component_dev
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 <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/1631955726-77693-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5682s.c')
-rw-r--r-- | sound/soc/codecs/rt5682s.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt5682s.c b/sound/soc/codecs/rt5682s.c index d878a20527f1..d3e965b2e707 100644 --- a/sound/soc/codecs/rt5682s.c +++ b/sound/soc/codecs/rt5682s.c @@ -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, |