Skip to content

Commit

Permalink
ASoC: max98388: set variable soc_codec_dev_max98388 storage-class-spe…
Browse files Browse the repository at this point in the history
…cifier 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>
  • Loading branch information
Tom Rix authored and Mark Brown committed Jun 17, 2023
1 parent 0f00a3f commit 320d0e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/max98388.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 320d0e2

Please sign in to comment.