ASoC: max98388: set variable soc_codec_dev_max98388 storage-class-specifier to static
authorTom Rix <trix@redhat.com>
Sat, 17 Jun 2023 12:26:35 +0000 (08:26 -0400)
committerMark Brown <broonie@kernel.org>
Sat, 17 Jun 2023 13:13:49 +0000 (14:13 +0100)
smatch reports
sound/soc/codecs/max98388.c:890:39: warning: symbol
  'soc_codec_dev_max98388' was not declared. Should it be static?

This variable is only used in its defining file, so it should be static.

Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/Message-Id:
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max98388.c

index 3d03c4b..1fd50e5 100644 (file)
@@ -887,7 +887,7 @@ static const struct regmap_config max98388_regmap = {
        .cache_type = REGCACHE_RBTREE,
 };
 
-const struct snd_soc_component_driver soc_codec_dev_max98388 = {
+static const struct snd_soc_component_driver soc_codec_dev_max98388 = {
        .probe                  = max98388_probe,
        .controls               = max98388_snd_controls,
        .num_controls           = ARRAY_SIZE(max98388_snd_controls),