diff options
author | Stefan Weil <sw@weilnetz.de> | 2013-12-22 15:22:57 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-01-01 18:03:55 +0400 |
commit | 52975c313ee4b5ce2004c1ed3279272a55429ede (patch) | |
tree | 9306e800a00132bfd47e72b05892948fe38f3138 /hw/input | |
parent | f57d6693e1ad994374927d7ab7b151bb28f0cb37 (diff) |
pxa27x: Add 'const' attribute to keyboard maps
The mapping is a hardware feature, so it is relatively constant.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/input')
-rw-r--r-- | hw/input/pxa2xx_keypad.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/input/pxa2xx_keypad.c b/hw/input/pxa2xx_keypad.c index 846d1370de..b90b0ba102 100644 --- a/hw/input/pxa2xx_keypad.c +++ b/hw/input/pxa2xx_keypad.c @@ -85,7 +85,7 @@ struct PXA2xxKeyPadState { MemoryRegion iomem; qemu_irq irq; - struct keymap *map; + const struct keymap *map; int pressed_cnt; int alt_code; @@ -322,8 +322,8 @@ PXA2xxKeyPadState *pxa27x_keypad_init(MemoryRegion *sysmem, return s; } -void pxa27x_register_keypad(PXA2xxKeyPadState *kp, struct keymap *map, - int size) +void pxa27x_register_keypad(PXA2xxKeyPadState *kp, + const struct keymap *map, int size) { if(!map || size < 0x80) { fprintf(stderr, "%s - No PXA keypad map defined\n", __FUNCTION__); |