diff options
author | Tom Rix <trix@redhat.com> | 2023-03-09 09:09:59 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-03-13 14:08:44 +0000 |
commit | d7d103d1779c3d0bc4d55f2802930a6b067450c0 (patch) | |
tree | 2b0dcc6c779624247fc833b8d8d93ae0b662fa91 /sound/soc/codecs/sma1303.c | |
parent | 8cd3cb17fcf216cb859f86a00fff428fbcecc1d8 (diff) |
ASoC: SMA1303: set sma_i2c_regmap storage-class-specifier to static
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>
Diffstat (limited to 'sound/soc/codecs/sma1303.c')
-rw-r--r-- | sound/soc/codecs/sma1303.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/sma1303.c b/sound/soc/codecs/sma1303.c index fa4b0a60f8a9..b6c132edf3bd 100644 --- a/sound/soc/codecs/sma1303.c +++ b/sound/soc/codecs/sma1303.c @@ -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, |