diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-08-13 11:37:15 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-14 12:15:09 -0400 |
commit | fa99125e2acca4e85de57cff55aea9fc7cb2930a (patch) | |
tree | 88a79f194c58371748376d7e6e323440feaab28e | |
parent | a8ad0c85fbfa56c44161829f6433e59dcd84b731 (diff) |
ASoC: samsung: make tm2_dapm_widgets and tm2_pm_ops static
tm2_dapm_widgets and tm2_pm_ops are local to the source and do not need
to be in global scope, so make them static.
Cleans up sparse warnings:
symbol 'tm2_dapm_widgets' was not declared. Should it be static?
symbol 'tm2_pm_ops' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/samsung/tm2_wm5110.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/samsung/tm2_wm5110.c b/sound/soc/samsung/tm2_wm5110.c index 24cc9d63ce87..68698f3d72f9 100644 --- a/sound/soc/samsung/tm2_wm5110.c +++ b/sound/soc/samsung/tm2_wm5110.c | |||
@@ -318,7 +318,7 @@ static const struct snd_kcontrol_new tm2_controls[] = { | |||
318 | SOC_DAPM_PIN_SWITCH("Headset Mic"), | 318 | SOC_DAPM_PIN_SWITCH("Headset Mic"), |
319 | }; | 319 | }; |
320 | 320 | ||
321 | const struct snd_soc_dapm_widget tm2_dapm_widgets[] = { | 321 | static const struct snd_soc_dapm_widget tm2_dapm_widgets[] = { |
322 | SND_SOC_DAPM_HP("HP", NULL), | 322 | SND_SOC_DAPM_HP("HP", NULL), |
323 | SND_SOC_DAPM_SPK("SPK", NULL), | 323 | SND_SOC_DAPM_SPK("SPK", NULL), |
324 | SND_SOC_DAPM_SPK("RCV", NULL), | 324 | SND_SOC_DAPM_SPK("RCV", NULL), |
@@ -521,7 +521,7 @@ static void tm2_pm_complete(struct device *dev) | |||
521 | tm2_start_sysclk(card); | 521 | tm2_start_sysclk(card); |
522 | } | 522 | } |
523 | 523 | ||
524 | const struct dev_pm_ops tm2_pm_ops = { | 524 | static const struct dev_pm_ops tm2_pm_ops = { |
525 | .prepare = tm2_pm_prepare, | 525 | .prepare = tm2_pm_prepare, |
526 | .suspend = snd_soc_suspend, | 526 | .suspend = snd_soc_suspend, |
527 | .resume = snd_soc_resume, | 527 | .resume = snd_soc_resume, |