Skip to content

Commit cfd6ccb

Browse files
committed
ASoC: Intel: boards: add 'static' qualifiers for max98390 routes
Sparse warnings: sound/soc/intel/boards/sof_maxim_common.c:140:33: error: symbol 'max_98390_dapm_routes' was not declared. Should it be static? sound/soc/intel/boards/sof_maxim_common.c:156:33: error: symbol 'max_98390_tt_dapm_routes' was not declared. Should it be static? Fixes: f316c9d ('ASoC: Intel: boards: add max98390 2/4 speakers support') Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
1 parent f3f0452 commit cfd6ccb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/soc/intel/boards/sof_maxim_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ EXPORT_SYMBOL_NS(max_98373_set_codec_conf, SND_SOC_INTEL_SOF_MAXIM_COMMON);
137137
/*
138138
* Maxim MAX98390
139139
*/
140-
const struct snd_soc_dapm_route max_98390_dapm_routes[] = {
140+
static const struct snd_soc_dapm_route max_98390_dapm_routes[] = {
141141
/* speaker */
142142
{ "Left Spk", NULL, "Left BE_OUT" },
143143
{ "Right Spk", NULL, "Right BE_OUT" },
@@ -153,7 +153,7 @@ static const struct snd_soc_dapm_widget max_98390_tt_dapm_widgets[] = {
153153
SND_SOC_DAPM_SPK("TR Spk", NULL),
154154
};
155155

156-
const struct snd_soc_dapm_route max_98390_tt_dapm_routes[] = {
156+
static const struct snd_soc_dapm_route max_98390_tt_dapm_routes[] = {
157157
/* Tweeter speaker */
158158
{ "TL Spk", NULL, "Tweeter Left BE_OUT" },
159159
{ "TR Spk", NULL, "Tweeter Right BE_OUT" },

0 commit comments

Comments
 (0)