aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/keyboard
diff options
context:
space:
mode:
authorSean McNeil <sean@mcneil.com>2008-11-19 17:09:42 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:09:42 +0000
commitd2332a3f8c6f2bcc86602af2d4385addb8a190bd (patch)
tree763224b67a84af5710ab30153c5ec77c44ab5c6e /drivers/input/keyboard
parentdb4ef629f8e2b2d8c80f048b83de13c4bc7d6120 (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>
Diffstat (limited to 'drivers/input/keyboard')
-rw-r--r--drivers/input/keyboard/neo1973kbd.c2
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);