aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/mach/keypad.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2009-09-24 19:23:16 -0400
committerTony Lindgren <tony@atomide.com>2009-09-24 19:23:16 -0400
commit4f5433324d1e29cf234d5b1b14782c0fc2948298 (patch)
tree8f90507db97315f47dfc5e6ad4214cfc4ca7ba94 /arch/arm/plat-omap/include/mach/keypad.h
parent501e9bd5ff00ea726e91cef7df61f889bdec2105 (diff)
omap: Fix matrix_keymap_data usage
Otherwise we'll get compile errors like: arch/arm/plat-omap/include/mach/keypad.h:38:1: warning: "KEY" redefined arch/arm/plat-omap/include/mach/keypad.h:39:1: warning: "PERSISTENT_KEY" redefined ... Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/include/mach/keypad.h')
-rw-r--r--arch/arm/plat-omap/include/mach/keypad.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/plat-omap/include/mach/keypad.h b/arch/arm/plat-omap/include/mach/keypad.h
index 45ea3ae3c995..d91b9be334ff 100644
--- a/arch/arm/plat-omap/include/mach/keypad.h
+++ b/arch/arm/plat-omap/include/mach/keypad.h
@@ -10,6 +10,8 @@
10#ifndef ASMARM_ARCH_KEYPAD_H 10#ifndef ASMARM_ARCH_KEYPAD_H
11#define ASMARM_ARCH_KEYPAD_H 11#define ASMARM_ARCH_KEYPAD_H
12 12
13#include <linux/input/matrix_keypad.h>
14
13struct omap_kp_platform_data { 15struct omap_kp_platform_data {
14 int rows; 16 int rows;
15 int cols; 17 int cols;
@@ -35,9 +37,6 @@ struct omap_kp_platform_data {
35 37
36#define KEY_PERSISTENT 0x00800000 38#define KEY_PERSISTENT 0x00800000
37#define KEYNUM_MASK 0x00EFFFFF 39#define KEYNUM_MASK 0x00EFFFFF
38#define KEY(col, row, val) (((col) << 28) | ((row) << 24) | (val))
39#define PERSISTENT_KEY(col, row) (((col) << 28) | ((row) << 24) | \
40 KEY_PERSISTENT)
41 40
42#endif 41#endif
43 42