diff mbox

sound: soc: codecs/ts3a227e: fix sparse warning

Message ID 1423070970-24164-1-git-send-email-prabhakar.csengg@gmail.com (mailing list archive)
State Accepted
Commit e7a0332f716d92b9a80c46fbd7d624c502984ca7
Headers show

Commit Message

Lad, Prabhakar Feb. 4, 2015, 5:29 p.m. UTC
From: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>

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

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
---
 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(+)

Comments

Mark Brown Feb. 4, 2015, 8:09 p.m. UTC | #1
On Wed, Feb 04, 2015 at 05:29:30PM +0000, Lad Prabhakar wrote:
> From: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
> 
> 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.
diff mbox

Patch

diff --git a/sound/soc/codecs/ts3a227e.c b/sound/soc/codecs/ts3a227e.c
index 5ecfa31..9fd80ac 100644
--- a/sound/soc/codecs/ts3a227e.c
+++ b/sound/soc/codecs/ts3a227e.c
@@ -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;