From: George Spelvin Date: Sun, 11 May 2014 11:12:55 +0000 (-0300) Subject: [media] ati_remote: Shrink ati_remote_tbl structure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=528abb9888d8031d60994e5a393631a1f34b3007;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] ati_remote: Shrink ati_remote_tbl structure The variable types are simply larger than they need to be. Shrink to signed and unsigned chars. Signed-off-by: George Spelvin Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/rc/ati_remote.c b/drivers/media/rc/ati_remote.c index 52a5af610259..c768c26b911f 100644 --- a/drivers/media/rc/ati_remote.c +++ b/drivers/media/rc/ati_remote.c @@ -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 */