ASoC: SMA1303: set sma_i2c_regmap storage-class-specifier to static
authorTom Rix <trix@redhat.com>
Thu, 9 Mar 2023 14:09:59 +0000 (09:09 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 13 Mar 2023 14:08:44 +0000 (14:08 +0000)
smatch reports
sound/soc/codecs/sma1303.c:1594:28:
  warning: symbol 'sma_i2c_regmap' was not declared. Should it be static?

sma_i2c_regmap is only used in sma1303, so it should be static

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

index fa4b0a60f8a91dac9cd4b309a277c69c65d2cf75..b6c132edf3bd1b186596242cc2e5ba6ecab9e01c 100644 (file)
@@ -1591,7 +1591,7 @@ static const struct snd_soc_component_driver sma1303_component = {
        .num_dapm_routes = ARRAY_SIZE(sma1303_audio_map),
 };
 
-const struct regmap_config sma_i2c_regmap = {
+static const struct regmap_config sma_i2c_regmap = {
        .reg_bits = 8,
        .val_bits = 8,