aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/codecs/max98388.c
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2023-06-17 08:26:35 -0400
committerMark Brown <broonie@kernel.org>2023-06-17 14:13:49 +0100
commit320d0e2db9edcde026aac93359624c1d429cb865 (patch)
tree5978c4a5226d414a1a5e46d1fd08deed9940dc06 /sound/soc/codecs/max98388.c
parentASoC: SOF: misc updates for 6.5 (diff)
downloadwireguard-linux-320d0e2db9edcde026aac93359624c1d429cb865.tar.xz
wireguard-linux-320d0e2db9edcde026aac93359624c1d429cb865.zip
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>
Diffstat (limited to 'sound/soc/codecs/max98388.c')
-rw-r--r--sound/soc/codecs/max98388.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98388.c b/sound/soc/codecs/max98388.c
index 3d03c4bac6c5..1fd50e56ecae 100644
--- a/sound/soc/codecs/max98388.c
+++ b/sound/soc/codecs/max98388.c
@@ -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),