[adm5120] add USB drivers for the NFS-101U/WU profiles
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1228-fix-aux-key-level-by-gtaxx.patch.patch
1 From 18ca5bd67840d6b2e21edb86057db10b2f21892d Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@openmoko.com>
3 Date: Sun, 13 Jul 2008 20:30:20 +0100
4 Subject: [PATCH] fix-aux-key-level-by-gtaxx.patch
5 Reported-by: Mickey Lauer <mickey@openmoko.org>
6
7 AUX level detection is inverted based on GTA01 or 02
8
9 Signed-off-by: Andy Green <andy@openmoko.com>
10 ---
11 drivers/input/keyboard/neo1973kbd.c | 5 ++++-
12 1 files changed, 4 insertions(+), 1 deletions(-)
13
14 diff --git a/drivers/input/keyboard/neo1973kbd.c b/drivers/input/keyboard/neo1973kbd.c
15 index 868d0a7..2ea6846 100644
16 --- a/drivers/input/keyboard/neo1973kbd.c
17 +++ b/drivers/input/keyboard/neo1973kbd.c
18 @@ -39,8 +39,11 @@ struct neo1973kbd {
19 static irqreturn_t neo1973kbd_aux_irq(int irq, void *dev_id)
20 {
21 struct neo1973kbd *neo1973kbd_data = dev_id;
22 + int key_pressed = !gpio_get_value(irq_to_gpio(irq));
23
24 - int key_pressed = !!gpio_get_value(irq_to_gpio(irq));
25 + /* GTA02 has inverted sense level compared to GTA01 */
26 + if (machine_is_neo1973_gta02())
27 + key_pressed = !key_pressed;
28 input_report_key(neo1973kbd_data->input, KEY_PHONE, key_pressed);
29 input_sync(neo1973kbd_data->input);
30
31 --
32 1.5.6.5
33
This page took 0.040516 seconds and 5 git commands to generate.