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 5b660ec09ef5..0c002099c3a3 100644
--- a/arch/arm/mach-mmp/aspenite.c
+++ b/arch/arm/mach-mmp/aspenite.c
@@ -210,7 +210,7 @@ struct pxa168fb_mach_info aspenite_lcd_info = {
210 .invert_pixclock = 0, 210 .invert_pixclock = 0,
211}; 211};
212 212
213static unsigned int aspenite_matrix_key_map[] = { 213static const unsigned int aspenite_matrix_key_map[] = {
214 KEY(0, 6, KEY_UP), /* SW 4 */ 214 KEY(0, 6, KEY_UP), /* SW 4 */
215 KEY(0, 7, KEY_DOWN), /* SW 5 */ 215 KEY(0, 7, KEY_DOWN), /* SW 5 */
216 KEY(1, 6, KEY_LEFT), /* SW 6 */ 216 KEY(1, 6, KEY_LEFT), /* SW 6 */
@@ -219,11 +219,15 @@ static unsigned int aspenite_matrix_key_map[] = {
219 KEY(4, 7, KEY_ESC), /* SW 9 */ 219 KEY(4, 7, KEY_ESC), /* SW 9 */
220}; 220};
221 221
222static struct matrix_keymap_data aspenite_matrix_keymap_data = {
223 .keymap = aspenite_matrix_key_map,
224 .keymap_size = ARRAY_SIZE(aspenite_matrix_key_map),
225};
226
222static struct pxa27x_keypad_platform_data aspenite_keypad_info __initdata = { 227static struct pxa27x_keypad_platform_data aspenite_keypad_info __initdata = {
223 .matrix_key_rows = 5, 228 .matrix_key_rows = 5,
224 .matrix_key_cols = 8, 229 .matrix_key_cols = 8,
225 .matrix_key_map = aspenite_matrix_key_map, 230 .matrix_keymap_data = &aspenite_matrix_keymap_data,
226 .matrix_key_map_size = ARRAY_SIZE(aspenite_matrix_key_map),
227 .debounce_interval = 30, 231 .debounce_interval = 30,
228}; 232};
229 233