efikasb: fix gpio keys.
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 <arnaud.patard@rtp-net.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
committed by
Sascha Hauer
parent
37df0e5de7
commit
f7db3d5f4c
@@ -163,23 +163,24 @@ static struct gpio_keys_button mx51_efikasb_keys[] = {
|
|||||||
{
|
{
|
||||||
.code = KEY_POWER,
|
.code = KEY_POWER,
|
||||||
.gpio = EFIKASB_PWRKEY,
|
.gpio = EFIKASB_PWRKEY,
|
||||||
.type = EV_PWR,
|
.type = EV_KEY,
|
||||||
.desc = "Power Button",
|
.desc = "Power Button",
|
||||||
.wakeup = 1,
|
.wakeup = 1,
|
||||||
.debounce_interval = 10, /* ms */
|
.active_low = 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.code = SW_LID,
|
.code = SW_LID,
|
||||||
.gpio = EFIKASB_LID,
|
.gpio = EFIKASB_LID,
|
||||||
.type = EV_SW,
|
.type = EV_SW,
|
||||||
.desc = "Lid Switch",
|
.desc = "Lid Switch",
|
||||||
|
.active_low = 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
/* SW_RFKILLALL vs KEY_RFKILL ? */
|
.code = KEY_RFKILL,
|
||||||
.code = SW_RFKILL_ALL,
|
|
||||||
.gpio = EFIKASB_RFKILL,
|
.gpio = EFIKASB_RFKILL,
|
||||||
.type = EV_SW,
|
.type = EV_KEY,
|
||||||
.desc = "rfkill",
|
.desc = "rfkill",
|
||||||
|
.active_low = 1,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user