diff options
author | Stefan Weil <sw@weilnetz.de> | 2013-12-22 15:32:29 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-01-01 18:03:55 +0400 |
commit | f57d6693e1ad994374927d7ab7b151bb28f0cb37 (patch) | |
tree | 1fb0ffae0705dc8091fc3ba2527912fedf9c3779 /include/hw | |
parent | 88e020e55e8fcfee0ca2428fb3654469abbd21ae (diff) | |
download | qemu-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')
-rw-r--r-- | include/hw/arm/pxa.h | 4 |
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, |