r3580 - branches/src/target/kernel/2.6.24.x/patches
laforge at sita.openmoko.org
laforge at sita.openmoko.org
Wed Dec 5 19:00:43 CET 2007
Author: laforge
Date: 2007-12-05 19:00:40 +0100 (Wed, 05 Dec 2007)
New Revision: 3580
Modified:
branches/src/target/kernel/2.6.24.x/patches/s3c2410_touchscreen.patch
Log:
s3c2410_ts 2.6.24-rc4 merge: use BIT_MASK and BIT_WORD
Modified: branches/src/target/kernel/2.6.24.x/patches/s3c2410_touchscreen.patch
===================================================================
--- branches/src/target/kernel/2.6.24.x/patches/s3c2410_touchscreen.patch 2007-12-05 17:59:23 UTC (rev 3579)
+++ branches/src/target/kernel/2.6.24.x/patches/s3c2410_touchscreen.patch 2007-12-05 18:00:40 UTC (rev 3580)
@@ -128,7 +128,7 @@
===================================================================
--- /dev/null
+++ linux-2.6/drivers/input/touchscreen/s3c2410_ts.c
-@@ -0,0 +1,427 @@
+@@ -0,0 +1,428 @@
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
@@ -400,8 +400,9 @@
+ }
+
+ ts.dev = input_dev;
-+ ts.dev->evbit[0] = BIT(EV_SYN) | BIT(EV_KEY) | BIT(EV_ABS);
-+ ts.dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH);
++ ts.dev->evbit[0] = BIT_MASK(EV_SYN) | BIT_MASK(EV_KEY) |
++ BIT_MASK(EV_ABS);
++ ts.dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);
+ input_set_abs_params(ts.dev, ABS_X, 0, 0x3FF, 0, 0);
+ input_set_abs_params(ts.dev, ABS_Y, 0, 0x3FF, 0, 0);
+ input_set_abs_params(ts.dev, ABS_PRESSURE, 0, 1, 0, 0);
More information about the commitlog
mailing list