aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAmit Kucheria <amit.kucheria@verdurent.com>2009-10-06 00:43:44 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-10-06 01:00:39 -0400
commitacf442dc560437858e6a4c904678052616f8226e (patch)
tree44f9ea41b028f35fbaa463c6964954c3925dd678 /include
parent4fa5757a4c54fe59c4d7d7a68ac2d0a5493a2bef (diff)
Input: fix rx51 board keymap
The original driver was written with the KEY() macro defined as (col, row) instead of (row, col) as defined by the matrix keypad infrastructure. So the keymap was defined accordingly. Since the driver that was merged upstream uses the matrix keypad infrastructure, modify the keymap accordingly. While we are at it, fix the comments in twl4030.h and define PERSISTENT_KEY as (r,c) instead of (c, r) Tested on a RX51 (N900) device. Signed-off-by: Amit Kucheria <amit.kucheria@verdurent.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include')
-rw-r--r--include/linux/i2c/twl4030.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/i2c/twl4030.h b/include/linux/i2c/twl4030.h
index 3fd21d7cb6bf..007572536ea9 100644
--- a/include/linux/i2c/twl4030.h
+++ b/include/linux/i2c/twl4030.h
@@ -305,11 +305,11 @@ struct twl4030_madc_platform_data {
305 int irq_line; 305 int irq_line;
306}; 306};
307 307
308/* Boards have uniqe mappings of {col, row} --> keycode. 308/* Boards have uniqe mappings of {row, col} --> keycode.
309 * Column and row are 4 bits, but range only from 0..7. 309 * Column and row are 8 bits each, but range only from 0..7.
310 * a PERSISTENT_KEY is "always on" and never reported. 310 * a PERSISTENT_KEY is "always on" and never reported.
311 */ 311 */
312#define PERSISTENT_KEY(c, r) KEY((c), (r), KEY_RESERVED) 312#define PERSISTENT_KEY(r, c) KEY((r), (c), KEY_RESERVED)
313 313
314struct twl4030_keypad_data { 314struct twl4030_keypad_data {
315 const struct matrix_keymap_data *keymap_data; 315 const struct matrix_keymap_data *keymap_data;