aboutsummaryrefslogtreecommitdiff
path: root/include/hw/arm
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2013-12-22 15:32:29 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2014-01-01 18:03:55 +0400
commitf57d6693e1ad994374927d7ab7b151bb28f0cb37 (patch)
tree1fb0ffae0705dc8091fc3ba2527912fedf9c3779 /include/hw/arm
parent88e020e55e8fcfee0ca2428fb3654469abbd21ae (diff)
downloadqemu-f57d6693e1ad994374927d7ab7b151bb28f0cb37.zip
qemu-f57d6693e1ad994374927d7ab7b151bb28f0cb37.tar.gz
qemu-f57d6693e1ad994374927d7ab7b151bb28f0cb37.tar.bz2
pxa27x: Reduce size of keyboard matrix mapping
The row and column values use only a very limited range (-1 ... 7), so a byte value is sufficient. 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 'include/hw/arm')
-rw-r--r--include/hw/arm/pxa.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/arm/pxa.h b/include/hw/arm/pxa.h
index a4e1a66..6db1ff3 100644
--- a/include/hw/arm/pxa.h
+++ b/include/hw/arm/pxa.h
@@ -102,8 +102,8 @@ void pxa2xx_pcmcia_set_irq_cb(void *opaque, qemu_irq irq, qemu_irq cd_irq);
/* pxa2xx_keypad.c */
struct keymap {
- int column;
- int row;
+ int8_t column;
+ int8_t row;
};
typedef struct PXA2xxKeyPadState PXA2xxKeyPadState;
PXA2xxKeyPadState *pxa27x_keypad_init(MemoryRegion *sysmem,