Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d80a12f9 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Mark Brown
Browse files

ASoC: odrodix2_max98090: Make non exported symbols static



odroidx2_drvdata and odroidu3_drvdata are not used outside this module so make
them static (and also const while we are at it).

Fixes the following warnings from sparse:
    sound/soc/samsung/odroidx2_max98090.c:69:26: warning: symbol
     'odroidx2_drvdata' was not declared. Should it be static?
    sound/soc/samsung/odroidx2_max98090.c:74:26: warning: symbol
     'odroidu3_drvdata' was not declared. Should it be static?

Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 7d1311b9
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -66,12 +66,12 @@ static struct snd_soc_card odroidx2 = {
	.late_probe		= odroidx2_late_probe,
	.late_probe		= odroidx2_late_probe,
};
};


struct odroidx2_drv_data odroidx2_drvdata = {
static const struct odroidx2_drv_data odroidx2_drvdata = {
	.dapm_widgets		= odroidx2_dapm_widgets,
	.dapm_widgets		= odroidx2_dapm_widgets,
	.num_dapm_widgets	= ARRAY_SIZE(odroidx2_dapm_widgets),
	.num_dapm_widgets	= ARRAY_SIZE(odroidx2_dapm_widgets),
};
};


struct odroidx2_drv_data odroidu3_drvdata = {
static const struct odroidx2_drv_data odroidu3_drvdata = {
	.dapm_widgets		= odroidu3_dapm_widgets,
	.dapm_widgets		= odroidu3_dapm_widgets,
	.num_dapm_widgets	= ARRAY_SIZE(odroidu3_dapm_widgets),
	.num_dapm_widgets	= ARRAY_SIZE(odroidu3_dapm_widgets),
};
};