From: Stefan Weil Date: Sun, 22 Dec 2013 14:32:29 +0000 (+0100) Subject: pxa27x: Reduce size of keyboard matrix mapping X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f57d6693e1ad994374927d7ab7b151bb28f0cb37;p=qemu.git 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 Reviewed-by: Peter Maydell Signed-off-by: Michael Tokarev --- diff --git a/include/hw/arm/pxa.h b/include/hw/arm/pxa.h index a4e1a66264..6db1ff344f 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,