aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mmp/aspenite.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-mmp/aspenite.c')
-rw-r--r--arch/arm/mach-mmp/aspenite.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/mach-mmp/aspenite.c b/arch/arm/mach-mmp/aspenite.c
index 9f64d5632e07..1e233467fffa 100644
--- a/arch/arm/mach-mmp/aspenite.c
+++ b/arch/arm/mach-mmp/aspenite.c
@@ -205,7 +205,7 @@ struct pxa168fb_mach_info aspenite_lcd_info = {
205 .invert_pixclock = 0, 205 .invert_pixclock = 0,
206}; 206};
207 207
208static unsigned int aspenite_matrix_key_map[] = { 208static const unsigned int aspenite_matrix_key_map[] = {
209 KEY(0, 6, KEY_UP), /* SW 4 */ 209 KEY(0, 6, KEY_UP), /* SW 4 */
210 KEY(0, 7, KEY_DOWN), /* SW 5 */ 210 KEY(0, 7, KEY_DOWN), /* SW 5 */
211 KEY(1, 6, KEY_LEFT), /* SW 6 */ 211 KEY(1, 6, KEY_LEFT), /* SW 6 */
@@ -214,11 +214,15 @@ static unsigned int aspenite_matrix_key_map[] = {
214 KEY(4, 7, KEY_ESC), /* SW 9 */ 214 KEY(4, 7, KEY_ESC), /* SW 9 */
215}; 215};
216 216
217static struct matrix_keymap_data aspenite_matrix_keymap_data = {
218 .keymap = aspenite_matrix_key_map,
219 .keymap_size = ARRAY_SIZE(aspenite_matrix_key_map),
220};
221
217static struct pxa27x_keypad_platform_data aspenite_keypad_info __initdata = { 222static struct pxa27x_keypad_platform_data aspenite_keypad_info __initdata = {
218 .matrix_key_rows = 5, 223 .matrix_key_rows = 5,
219 .matrix_key_cols = 8, 224 .matrix_key_cols = 8,
220 .matrix_key_map = aspenite_matrix_key_map, 225 .matrix_keymap_data = &aspenite_matrix_keymap_data,
221 .matrix_key_map_size = ARRAY_SIZE(aspenite_matrix_key_map),
222 .debounce_interval = 30, 226 .debounce_interval = 30,
223}; 227};
224 228