]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: fsl: lpc3xxx: Make some symbols static
authorYue Haibing <yuehaibing@huawei.com>
Fri, 2 Aug 2024 10:10:44 +0000 (18:10 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 2 Aug 2024 13:05:32 +0000 (14:05 +0100)
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>
sound/soc/fsl/lpc3xxx-i2s.c
sound/soc/fsl/lpc3xxx-pcm.c

index 8ae33d91a8a8bcb4df4afa5a94b56aa73d78ea34..c65c17dfa17474ce19d8d449af53d92c1652a8fb 100644 (file)
@@ -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,
index c0d499b9b8ba440ac99168521d099deeb584b819..e6abaf63895ac6d05adaebf739afaa597e245796 100644 (file)
@@ -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",
 };