]> Git Repo - linux.git/commitdiff
efikasb: fix gpio keys.
authorArnaud Patard (Rtp) <[email protected]>
Mon, 27 Jun 2011 20:41:05 +0000 (22:41 +0200)
committerSascha Hauer <[email protected]>
Tue, 26 Jul 2011 07:14:52 +0000 (09:14 +0200)
While testing the keys, I only checked that the key were generating an input
event but unfortunately, they were not generating the right event. Fix that.

Signed-off-by: Arnaud Patard <[email protected]>
Signed-off-by: Sascha Hauer <[email protected]>
arch/arm/mach-mx5/board-mx51_efikasb.c

index 474fc6e4c6df5593ecd0df7a80b3f3c8c5569a1c..8054f3f7f4912af559a9d52bb8a19f5cc04865f5 100644 (file)
@@ -163,23 +163,24 @@ static struct gpio_keys_button mx51_efikasb_keys[] = {
        {
                .code = KEY_POWER,
                .gpio = EFIKASB_PWRKEY,
-               .type = EV_PWR,
+               .type = EV_KEY,
                .desc = "Power Button",
                .wakeup = 1,
-               .debounce_interval = 10, /* ms */
+               .active_low = 1,
        },
        {
                .code = SW_LID,
                .gpio = EFIKASB_LID,
                .type = EV_SW,
                .desc = "Lid Switch",
+               .active_low = 1,
        },
        {
-               /* SW_RFKILLALL vs KEY_RFKILL ? */
-               .code = SW_RFKILL_ALL,
+               .code = KEY_RFKILL,
                .gpio = EFIKASB_RFKILL,
-               .type = EV_SW,
+               .type = EV_KEY,
                .desc = "rfkill",
+               .active_low = 1,
        },
 };
 
This page took 0.056396 seconds and 4 git commands to generate.