mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-09-21 20:22:13 +08:00
ASoC: fsl: lpc3xxx: Make some symbols static
These symbols are not used outside of the files, make them static to fix sparse warnings: sound/soc/fsl/lpc3xxx-i2s.c:261:30: warning: symbol 'lpc3xxx_i2s_dai_ops' was not declared. Should it be static? sound/soc/fsl/lpc3xxx-i2s.c:271:27: warning: symbol 'lpc3xxx_i2s_dai_driver' was not declared. Should it be static? sound/soc/fsl/lpc3xxx-pcm.c:55:39: warning: symbol 'lpc3xxx_soc_platform_driver' was not declared. Should it be static? Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Link: https://patch.msgid.link/20240802101044.3302251-1-yuehaibing@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
11c2d22371
commit
a1c2716738
@ -257,7 +257,7 @@ static int lpc3xxx_i2s_dai_probe(struct snd_soc_dai *dai)
|
||||
return 0;
|
||||
}
|
||||
|
||||
const struct snd_soc_dai_ops lpc3xxx_i2s_dai_ops = {
|
||||
static const struct snd_soc_dai_ops lpc3xxx_i2s_dai_ops = {
|
||||
.probe = lpc3xxx_i2s_dai_probe,
|
||||
.startup = lpc3xxx_i2s_startup,
|
||||
.shutdown = lpc3xxx_i2s_shutdown,
|
||||
@ -267,7 +267,7 @@ const struct snd_soc_dai_ops lpc3xxx_i2s_dai_ops = {
|
||||
.set_fmt = lpc3xxx_i2s_set_dai_fmt,
|
||||
};
|
||||
|
||||
struct snd_soc_dai_driver lpc3xxx_i2s_dai_driver = {
|
||||
static struct snd_soc_dai_driver lpc3xxx_i2s_dai_driver = {
|
||||
.playback = {
|
||||
.channels_min = 1,
|
||||
.channels_max = 2,
|
||||
|
@ -52,7 +52,7 @@ static const struct snd_dmaengine_pcm_config lpc3xxx_dmaengine_pcm_config = {
|
||||
.prealloc_buffer_size = 128 * 1024,
|
||||
};
|
||||
|
||||
const struct snd_soc_component_driver lpc3xxx_soc_platform_driver = {
|
||||
static const struct snd_soc_component_driver lpc3xxx_soc_platform_driver = {
|
||||
.name = "lpc32xx-pcm",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user