Skip to content

Commit 320d0e2

Browse files
Tom Rixbroonie
authored andcommitted
ASoC: max98388: set variable soc_codec_dev_max98388 storage-class-specifier to static
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: <20230617122635.3225639-1-trix@redhat.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 0f00a3f commit 320d0e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/codecs/max98388.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ static const struct regmap_config max98388_regmap = {
887887
.cache_type = REGCACHE_RBTREE,
888888
};
889889

890-
const struct snd_soc_component_driver soc_codec_dev_max98388 = {
890+
static const struct snd_soc_component_driver soc_codec_dev_max98388 = {
891891
.probe = max98388_probe,
892892
.controls = max98388_snd_controls,
893893
.num_controls = ARRAY_SIZE(max98388_snd_controls),

0 commit comments

Comments
 (0)