diff options
Diffstat (limited to 'arch/arm/mach-pxa/palmz72.c')
-rw-r--r-- | arch/arm/mach-pxa/palmz72.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/mach-pxa/palmz72.c b/arch/arm/mach-pxa/palmz72.c index 18b7fcd98592..1a35ddf218da 100644 --- a/arch/arm/mach-pxa/palmz72.c +++ b/arch/arm/mach-pxa/palmz72.c | |||
@@ -140,7 +140,7 @@ static unsigned long palmz72_pin_config[] __initdata = { | |||
140 | * GPIO keyboard | 140 | * GPIO keyboard |
141 | ******************************************************************************/ | 141 | ******************************************************************************/ |
142 | #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULE) | 142 | #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULE) |
143 | static unsigned int palmz72_matrix_keys[] = { | 143 | static const unsigned int palmz72_matrix_keys[] = { |
144 | KEY(0, 0, KEY_POWER), | 144 | KEY(0, 0, KEY_POWER), |
145 | KEY(0, 1, KEY_F1), | 145 | KEY(0, 1, KEY_F1), |
146 | KEY(0, 2, KEY_ENTER), | 146 | KEY(0, 2, KEY_ENTER), |
@@ -156,11 +156,15 @@ static unsigned int palmz72_matrix_keys[] = { | |||
156 | KEY(3, 2, KEY_LEFT), | 156 | KEY(3, 2, KEY_LEFT), |
157 | }; | 157 | }; |
158 | 158 | ||
159 | static struct matrix_keymap_data almz72_matrix_keymap_data = { | ||
160 | .keymap = palmz72_matrix_keys, | ||
161 | .keymap_size = ARRAY_SIZE(palmz72_matrix_keys), | ||
162 | }; | ||
163 | |||
159 | static struct pxa27x_keypad_platform_data palmz72_keypad_platform_data = { | 164 | static struct pxa27x_keypad_platform_data palmz72_keypad_platform_data = { |
160 | .matrix_key_rows = 4, | 165 | .matrix_key_rows = 4, |
161 | .matrix_key_cols = 3, | 166 | .matrix_key_cols = 3, |
162 | .matrix_key_map = palmz72_matrix_keys, | 167 | .matrix_keymap_data = &almz72_matrix_keymap_data, |
163 | .matrix_key_map_size = ARRAY_SIZE(palmz72_matrix_keys), | ||
164 | 168 | ||
165 | .debounce_interval = 30, | 169 | .debounce_interval = 30, |
166 | }; | 170 | }; |