Skip to contentSkip to conversation

sound: soc: codecs/ts3a227e: fix sparse warning

PATCH Applied Lad Prabhakar 2 participants 2 messages Feb 4, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sound: soc: codecs/ts3a227e: fix sparse warning

From: "Lad, Prabhakar" <[email protected]>

this patch fixes following sparse warning:
ts3a227e.c:222:5: warning: symbol 'ts3a227e_enable_jack_detect' was not declared. Should it be static?

---
Found this issue on linux-next (gcc version 4.8.2, sparse version 0.4.5-rc1)and applies on top linux-next.

 sound/soc/codecs/ts3a227e.c | 2 ++
 1 file changed, 2 insertions(+)
sound/soc/codecs/ts3a227e.c +2 -0
index 5ecfa31..9fd80ac 100644
@@ -20,6 +20,8 @@
 #include <sound/jack.h>
 #include <sound/soc.h>
 
+#include "ts3a227e.h"
+
 struct ts3a227e {
 	struct regmap *regmap;
 	struct snd_soc_jack *jack;
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 4 lines · Lad Prabhakar

From: "Lad, Prabhakar" <[email protected]>

this patch fixes following sparse warning:
ts3a227e.c:222:5: warning: symbol 'ts3a227e_enable_jack_detect' was not declared. Should it be static?

Applied, thanks. Please use subject lines matching the style for the subsystem.