[kernel] update to 2.6.28.7 and 2.6.27.19
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1141-fix-KEY_PHONE-up-down-inversion.patch.patch
1 From bb7abab607e71a3cc1e8a4ebfa7619d872827353 Mon Sep 17 00:00:00 2001
2 From: Sean McNeil <sean@mcneil.com>
3 Date: Thu, 8 May 2008 09:24:45 +0100
4 Subject: [PATCH] fix-KEY_PHONE-up-down-inversion.patch
5
6 the KEY_PHONE is backwards. It returns up when pushed and down when
7 released. The following change fixes it:
8
9 Signed-off-by: Sean McNeil <sean@mcneil.com>
10 ---
11 drivers/input/keyboard/neo1973kbd.c | 2 +-
12 1 files changed, 1 insertions(+), 1 deletions(-)
13
14 diff --git a/drivers/input/keyboard/neo1973kbd.c b/drivers/input/keyboard/neo1973kbd.c
15 index 8b9a420..868d0a7 100644
16 --- a/drivers/input/keyboard/neo1973kbd.c
17 +++ b/drivers/input/keyboard/neo1973kbd.c
18 @@ -40,7 +40,7 @@ static irqreturn_t neo1973kbd_aux_irq(int irq, void *dev_id)
19 {
20 struct neo1973kbd *neo1973kbd_data = dev_id;
21
22 - int key_pressed = !gpio_get_value(irq_to_gpio(irq));
23 + int key_pressed = !!gpio_get_value(irq_to_gpio(irq));
24 input_report_key(neo1973kbd_data->input, KEY_PHONE, key_pressed);
25 input_sync(neo1973kbd_data->input);
26
27 --
28 1.5.6.5
29
This page took 0.041009 seconds and 5 git commands to generate.