]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: shmobile: kzm9g: use gpio-keys instead of gpio-keys-polled
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 28 Aug 2012 02:00:54 +0000 (19:00 -0700)
committerSimon Horman <horms@verge.net.au>
Tue, 11 Sep 2012 04:54:57 +0000 (13:54 +0900)
6e20a0a429bd4dc07d6de16d9c247270e04e4aa0
(gpio: pcf857x: enable gpio_to_irq() support) supports
gpio_to_irq() on pcf857x driver.
Now, we can use gpio-keys driver instead of gpio-keys-polled.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
arch/arm/configs/kzm9g_defconfig
arch/arm/mach-shmobile/board-kzm9g.c

index 2388c86106277dccb08e0c24820a6e4a0a733630..175804e585566c236e46271d99891be4b16a4f8d 100644 (file)
@@ -22,7 +22,6 @@ CONFIG_MODULE_UNLOAD=y
 # CONFIG_IOSCHED_DEADLINE is not set
 # CONFIG_IOSCHED_CFQ is not set
 CONFIG_ARCH_SHMOBILE=y
-CONFIG_KEYBOARD_GPIO_POLLED=y
 CONFIG_ARCH_SH73A0=y
 CONFIG_MACH_KZM9G=y
 CONFIG_MEMORY_START=0x41000000
@@ -70,6 +69,7 @@ CONFIG_INPUT_SPARSEKMAP=y
 # CONFIG_INPUT_MOUSEDEV is not set
 CONFIG_INPUT_EVDEV=y
 # CONFIG_KEYBOARD_ATKBD is not set
+CONFIG_KEYBOARD_GPIO=y
 # CONFIG_INPUT_MOUSE is not set
 CONFIG_INPUT_TOUCHSCREEN=y
 CONFIG_TOUCHSCREEN_ST1232=y
index 53b7ea92c32c119bcfc6d44a96b92fac915363da..4d1348eae52600fe9e7f0a73598399d6b649f0a8 100644 (file)
@@ -482,12 +482,10 @@ static struct gpio_keys_button gpio_buttons[] = {
 static struct gpio_keys_platform_data gpio_key_info = {
        .buttons        = gpio_buttons,
        .nbuttons       = ARRAY_SIZE(gpio_buttons),
-       .poll_interval  = 250, /* poling at this point */
 };
 
 static struct platform_device gpio_keys_device = {
-       /* gpio-pcf857x.c driver doesn't support gpio_to_irq() */
-       .name   = "gpio-keys-polled",
+       .name   = "gpio-keys",
        .dev    = {
                .platform_data  = &gpio_key_info,
        },
@@ -550,6 +548,7 @@ static struct platform_device fsi_ak4648_device = {
 /* I2C */
 static struct pcf857x_platform_data pcf8575_pdata = {
        .gpio_base      = GPIO_PCF8575_BASE,
+       .irq            = intcs_evt2irq(0x3260), /* IRQ19 */
 };
 
 static struct i2c_board_info i2c0_devices[] = {