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

Commit fa99125e authored by Colin Ian King's avatar Colin Ian King Committed by Mark Brown
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a8ad0c85
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -318,7 +318,7 @@ static const struct snd_kcontrol_new tm2_controls[] = {
	SOC_DAPM_PIN_SWITCH("Headset Mic"),
	SOC_DAPM_PIN_SWITCH("Headset Mic"),
};
};


const struct snd_soc_dapm_widget tm2_dapm_widgets[] = {
static const struct snd_soc_dapm_widget tm2_dapm_widgets[] = {
	SND_SOC_DAPM_HP("HP", NULL),
	SND_SOC_DAPM_HP("HP", NULL),
	SND_SOC_DAPM_SPK("SPK", NULL),
	SND_SOC_DAPM_SPK("SPK", NULL),
	SND_SOC_DAPM_SPK("RCV", NULL),
	SND_SOC_DAPM_SPK("RCV", NULL),
@@ -521,7 +521,7 @@ static void tm2_pm_complete(struct device *dev)
	tm2_start_sysclk(card);
	tm2_start_sysclk(card);
}
}


const struct dev_pm_ops tm2_pm_ops = {
static const struct dev_pm_ops tm2_pm_ops = {
	.prepare	= tm2_pm_prepare,
	.prepare	= tm2_pm_prepare,
	.suspend	= snd_soc_suspend,
	.suspend	= snd_soc_suspend,
	.resume		= snd_soc_resume,
	.resume		= snd_soc_resume,