Commit aa0d5f09 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown

ASoC: Intel: broadwell: Make broadwell_disable_jack() return void

broadwell_disable_jack() returns zero unconditionally. Letting it
return void instead makes it easier to see in the callers that there is no
error to handle.

This is a preparation for making platform remove callbacks return void.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220605153904.26921-1-u.kleine-koenig@pengutronix.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7ede9c4c
...@@ -227,7 +227,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = { ...@@ -227,7 +227,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = {
}, },
}; };
static int broadwell_disable_jack(struct snd_soc_card *card) static void broadwell_disable_jack(struct snd_soc_card *card)
{ {
struct snd_soc_component *component; struct snd_soc_component *component;
...@@ -239,13 +239,13 @@ static int broadwell_disable_jack(struct snd_soc_card *card) ...@@ -239,13 +239,13 @@ static int broadwell_disable_jack(struct snd_soc_card *card)
break; break;
} }
} }
return 0;
} }
static int broadwell_suspend(struct snd_soc_card *card) static int broadwell_suspend(struct snd_soc_card *card)
{ {
return broadwell_disable_jack(card); broadwell_disable_jack(card);
return 0;
} }
static int broadwell_resume(struct snd_soc_card *card){ static int broadwell_resume(struct snd_soc_card *card){
...@@ -315,7 +315,9 @@ static int broadwell_audio_remove(struct platform_device *pdev) ...@@ -315,7 +315,9 @@ static int broadwell_audio_remove(struct platform_device *pdev)
{ {
struct snd_soc_card *card = platform_get_drvdata(pdev); struct snd_soc_card *card = platform_get_drvdata(pdev);
return broadwell_disable_jack(card); broadwell_disable_jack(card);
return 0;
} }
static struct platform_driver broadwell_audio = { static struct platform_driver broadwell_audio = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment