diff options
author | Sean McNeil <sean@mcneil.com> | 2008-11-19 17:09:42 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:09:42 +0000 |
commit | d2332a3f8c6f2bcc86602af2d4385addb8a190bd (patch) | |
tree | 763224b67a84af5710ab30153c5ec77c44ab5c6e | |
parent | db4ef629f8e2b2d8c80f048b83de13c4bc7d6120 (diff) |
fix-KEY_PHONE-up-down-inversion.patch
the KEY_PHONE is backwards. It returns up when pushed and down when
released. The following change fixes it:
Signed-off-by: Sean McNeil <sean@mcneil.com>
-rw-r--r-- | drivers/input/keyboard/neo1973kbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/neo1973kbd.c b/drivers/input/keyboard/neo1973kbd.c index d22f3771b39..3076af3a16c 100644 --- a/drivers/input/keyboard/neo1973kbd.c +++ b/drivers/input/keyboard/neo1973kbd.c @@ -40,7 +40,7 @@ static irqreturn_t neo1973kbd_aux_irq(int irq, void *dev_id) { struct neo1973kbd *neo1973kbd_data = dev_id; - int key_pressed = !gpio_get_value(irq_to_gpio(irq)); + int key_pressed = !!gpio_get_value(irq_to_gpio(irq)); input_report_key(neo1973kbd_data->input, KEY_PHONE, key_pressed); input_sync(neo1973kbd_data->input); |