aboutsummaryrefslogtreecommitdiff
path: root/hw/arm/z2.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2013-12-22 15:22:57 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2014-01-01 18:03:55 +0400
commit52975c313ee4b5ce2004c1ed3279272a55429ede (patch)
tree9306e800a00132bfd47e72b05892948fe38f3138 /hw/arm/z2.c
parentf57d6693e1ad994374927d7ab7b151bb28f0cb37 (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/arm/z2.c')
-rw-r--r--hw/arm/z2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/z2.c b/hw/arm/z2.c
index d52c5019b3..97367b1f8b 100644
--- a/hw/arm/z2.c
+++ b/hw/arm/z2.c
@@ -33,7 +33,7 @@
#define DPRINTF(fmt, ...)
#endif
-static struct keymap map[0x100] = {
+static const struct keymap map[0x100] = {
[0 ... 0xff] = { -1, -1 },
[0x3b] = {0, 0}, /* Option = F1 */
[0xc8] = {0, 1}, /* Up */