2008-12-12 13:58:53 +02:00
|
|
|
From bb7abab607e71a3cc1e8a4ebfa7619d872827353 Mon Sep 17 00:00:00 2001
|
2008-12-12 02:02:36 +02:00
|
|
|
From: Sean McNeil <sean@mcneil.com>
|
2008-12-12 13:58:53 +02:00
|
|
|
Date: Thu, 8 May 2008 09:24:45 +0100
|
2008-12-12 02:02:36 +02:00
|
|
|
Subject: [PATCH] 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>
|
|
|
|
---
|
|
|
|
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
|
2008-12-12 13:58:53 +02:00
|
|
|
index 8b9a420..868d0a7 100644
|
2008-12-12 02:02:36 +02:00
|
|
|
--- 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);
|
|
|
|
|
|
|
|
--
|
2008-12-12 13:58:53 +02:00
|
|
|
1.5.6.5
|
2008-12-12 02:02:36 +02:00
|
|
|
|