[media] ati_remote: Shrink ati_remote_tbl structure
authorGeorge Spelvin <linux@horizon.com>
Sun, 11 May 2014 11:12:55 +0000 (08:12 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 26 Jul 2014 02:46:32 +0000 (23:46 -0300)
The variable types are simply larger than they need to be.
Shrink to signed and unsigned chars.

Signed-off-by: George Spelvin <linux@horizon.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/rc/ati_remote.c

index 52a5af610259b1305c908c632228ce3f1d4875ce..c768c26b911f9e8c9d4adf16d06d8b5dc7abafcf 100644 (file)
@@ -289,11 +289,11 @@ struct ati_remote {
 
 /* Translation table from hardware messages to input events. */
 static const struct {
-       short kind;
+       unsigned char kind;
        unsigned char data;
-       int type;
-       unsigned int code;
-       int value;
+       unsigned char type;
+       unsigned short code;
+       signed char value;
 }  ati_remote_tbl[] = {
        /* Directional control pad axes */
        {KIND_ACCEL,   0x70, EV_REL, REL_X, -1},   /* left */