[PATCH] mach-gta02: add GTA02_GPIO_JACK_INSERT to the gpio_keys

mok at mnet-online.de mok at mnet-online.de
Wed Jun 30 17:13:24 CEST 2010


From: Klaus Kurzmann <mok at fluxnetz.de>

This makes it report headset insert/pull events via
the gpio-keys input device again.

Signed-off-by: Klaus Kurzmann <mok at fluxnetz.de>
---
 arch/arm/mach-s3c2442/mach-gta02.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-s3c2442/mach-gta02.c b/arch/arm/mach-s3c2442/mach-gta02.c
index 7965cad..abcd08b 100644
--- a/arch/arm/mach-s3c2442/mach-gta02.c
+++ b/arch/arm/mach-s3c2442/mach-gta02.c
@@ -963,6 +963,13 @@ static struct gpio_keys_button gta02_buttons[] = {
 		.type = EV_KEY,
 		.debounce_interval = 100,
 	},
+	{
+		.gpio = GTA02_GPIO_JACK_INSERT,
+		.code = SW_HEADPHONE_INSERT,
+		.desc = "Jack Insert",
+		.type = EV_SW,
+		.debounce_interval = 100,
+	},
 };
 
 static struct gpio_keys_platform_data gta02_buttons_pdata = {
-- 
1.7.0.1




More information about the openmoko-kernel mailing list