aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/patches/0136-fix-KEY_PHONE-up-down-inversion.patch.patch
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2008-12-12 00:02:36 +0000
committerMirko Vogt <mirko@openwrt.org>2008-12-12 00:02:36 +0000
commitb9dfb81f2aa45be745a8aed9684076210aed4152 (patch)
treeaceadd7f37096911a29c929988cbcf7c964a1c0b /target/linux/s3c24xx/patches/0136-fix-KEY_PHONE-up-down-inversion.patch.patch
parent4571721ec22de116ad9998657e0a3c12da6405fb (diff)
downloadupstream-b9dfb81f2aa45be745a8aed9684076210aed4152.tar.gz
upstream-b9dfb81f2aa45be745a8aed9684076210aed4152.tar.bz2
upstream-b9dfb81f2aa45be745a8aed9684076210aed4152.zip
add support for target 3c24xx (more known as Openmoko GTA02 "Freerunner") and merge it with the openmoko-target and the work Michael Buesch <mb> did
SVN-Revision: 13609
Diffstat (limited to 'target/linux/s3c24xx/patches/0136-fix-KEY_PHONE-up-down-inversion.patch.patch')
-rwxr-xr-xtarget/linux/s3c24xx/patches/0136-fix-KEY_PHONE-up-down-inversion.patch.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches/0136-fix-KEY_PHONE-up-down-inversion.patch.patch b/target/linux/s3c24xx/patches/0136-fix-KEY_PHONE-up-down-inversion.patch.patch
new file mode 100755
index 0000000000..aa28e29de7
--- /dev/null
+++ b/target/linux/s3c24xx/patches/0136-fix-KEY_PHONE-up-down-inversion.patch.patch
@@ -0,0 +1,29 @@
+From 5d4a157601b55c84ffe8886411f0b84c8de3d385 Mon Sep 17 00:00:00 2001
+From: Sean McNeil <sean@mcneil.com>
+Date: Fri, 25 Jul 2008 23:06:08 +0100
+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
+index d22f377..3076af3 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);
+
+--
+1.5.6.3
+