Skip to contentSkip to conversation

ASoC: Staticise twl6040_hs_jack_report()

PATCH Applied Mark Brown 2 participants 2 messages Jan 20, 2011 – Jan 21, 2011

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: Staticise twl6040_hs_jack_report()

It's an internal function so shouldn't be exported (as sparse points out).

---
 sound/soc/codecs/twl6040.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/twl6040.c +2 -2
index 4bbf1b1..482fcdb 100644
@@ -724,8 +724,8 @@ static int twl6040_power_mode_event(struct snd_soc_dapm_widget *w,
 	return 0;
 }
 
-void twl6040_hs_jack_report(struct snd_soc_codec *codec,
-				struct snd_soc_jack *jack, int report)
+static void twl6040_hs_jack_report(struct snd_soc_codec *codec,
+				   struct snd_soc_jack *jack, int report)
 {
 	struct twl6040_data *priv = snd_soc_codec_get_drvdata(codec);
 	int status;
Signature · 1 line
1.7.2.3
#1 lore raw
Quoted 13 lines · Mark Brown

It's an internal function so shouldn't be exported (as sparse points out).

---
 sound/soc/codecs/twl6040.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/twl6040.c +0 -0
index 4bbf1b1..482fcdb 100644

sound/soc/codecs/twl6040.c static int twl6040_power_mode_event(struct snd_soc_dapm_widget *w, · line 731

Quoted 10 lines
sound/soc/codecs/twl6040.c +2 -2
@@ -724,8 +724,8 @@ static int twl6040_power_mode_event(struct snd_soc_dapm_widget *w,
 	return 0;
 }
 
-void twl6040_hs_jack_report(struct snd_soc_codec *codec,
-				struct snd_soc_jack *jack, int report)
+static void twl6040_hs_jack_report(struct snd_soc_codec *codec,
+				   struct snd_soc_jack *jack, int report)
 {
 	struct twl6040_data *priv = snd_soc_codec_get_drvdata(codec);
 	int status;

Applied.

Thanks

Liam

Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk