diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-08-17 10:18:18 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-08-17 10:31:52 -0400 |
commit | d80a12f92466d0bc4fd244c9052a8a88518c868e (patch) | |
tree | 9eb8a79533f7d020f0e1ffbfffc64e5559fb0edf /sound | |
parent | 7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9 (diff) |
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: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/samsung/odroidx2_max98090.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/samsung/odroidx2_max98090.c b/sound/soc/samsung/odroidx2_max98090.c index 278edf9e2a87..3c8f60423e82 100644 --- a/sound/soc/samsung/odroidx2_max98090.c +++ b/sound/soc/samsung/odroidx2_max98090.c | |||
@@ -66,12 +66,12 @@ static struct snd_soc_card odroidx2 = { | |||
66 | .late_probe = odroidx2_late_probe, | 66 | .late_probe = odroidx2_late_probe, |
67 | }; | 67 | }; |
68 | 68 | ||
69 | struct odroidx2_drv_data odroidx2_drvdata = { | 69 | static const struct odroidx2_drv_data odroidx2_drvdata = { |
70 | .dapm_widgets = odroidx2_dapm_widgets, | 70 | .dapm_widgets = odroidx2_dapm_widgets, |
71 | .num_dapm_widgets = ARRAY_SIZE(odroidx2_dapm_widgets), | 71 | .num_dapm_widgets = ARRAY_SIZE(odroidx2_dapm_widgets), |
72 | }; | 72 | }; |
73 | 73 | ||
74 | struct odroidx2_drv_data odroidu3_drvdata = { | 74 | static const struct odroidx2_drv_data odroidu3_drvdata = { |
75 | .dapm_widgets = odroidu3_dapm_widgets, | 75 | .dapm_widgets = odroidu3_dapm_widgets, |
76 | .num_dapm_widgets = ARRAY_SIZE(odroidu3_dapm_widgets), | 76 | .num_dapm_widgets = ARRAY_SIZE(odroidu3_dapm_widgets), |
77 | }; | 77 | }; |