Skip to content

Commit

Permalink
ASoC: Intel: boards: add 'static' qualifiers for max98390 routes
Browse files Browse the repository at this point in the history
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>
Link: https://lore.kernel.org/r/20211207211700.115319-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Pierre-Louis Bossart authored and Mark Brown committed Dec 8, 2021
1 parent 3c732b6 commit 639cd58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/intel/boards/sof_maxim_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ EXPORT_SYMBOL_NS(max_98373_set_codec_conf, SND_SOC_INTEL_SOF_MAXIM_COMMON);
/*
* Maxim MAX98390
*/
const struct snd_soc_dapm_route max_98390_dapm_routes[] = {
static const struct snd_soc_dapm_route max_98390_dapm_routes[] = {
/* speaker */
{ "Left Spk", NULL, "Left BE_OUT" },
{ "Right Spk", NULL, "Right BE_OUT" },
Expand All @@ -153,7 +153,7 @@ static const struct snd_soc_dapm_widget max_98390_tt_dapm_widgets[] = {
SND_SOC_DAPM_SPK("TR Spk", NULL),
};

const struct snd_soc_dapm_route max_98390_tt_dapm_routes[] = {
static const struct snd_soc_dapm_route max_98390_tt_dapm_routes[] = {
/* Tweeter speaker */
{ "TL Spk", NULL, "Tweeter Left BE_OUT" },
{ "TR Spk", NULL, "Tweeter Right BE_OUT" },
Expand Down

0 comments on commit 639cd58

Please sign in to comment.