summaryrefslogtreecommitdiff
path: root/drivers/staging/fbtft/fb_ili9481.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2016-10-07 20:24:57 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-16 11:26:13 +0300
commit9f8e0562e36693a60a2fd76c7a64184661eaea23 (patch)
tree744baa6e394e929cfbc799a0d450058517a83acb /drivers/staging/fbtft/fb_ili9481.c
parentd45f1a563b92dac7eeff817e8f5178caa47e2c16 (diff)
downloadlinux-9f8e0562e36693a60a2fd76c7a64184661eaea23.tar.xz
staging: fbtft: Convert int arrays to s16
These arrays use -1, -2, and -3 as initiators for various types of writes to initialize hardware. No values are used that conflict with using these arrays as s16 instead of int and reducing overall data is good. $ size drivers/staging/fbtft/built-in.o* text data bss dec hex filename 116120 32872 4152 153144 25638 drivers/staging/fbtft/built-in.o.new 116104 36344 6200 158648 26bb8 drivers/staging/fbtft/built-in.o.old Miscellaneous: o Realign some of the arrays to make reading a bit easier Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft/fb_ili9481.c')
-rw-r--r--drivers/staging/fbtft/fb_ili9481.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fb_ili9481.c b/drivers/staging/fbtft/fb_ili9481.c
index 242adb3859bd..4e75f5abe2f9 100644
--- a/drivers/staging/fbtft/fb_ili9481.c
+++ b/drivers/staging/fbtft/fb_ili9481.c
@@ -27,7 +27,7 @@
#define WIDTH 320
#define HEIGHT 480
-static int default_init_sequence[] = {
+static s16 default_init_sequence[] = {
/* SLP_OUT - Sleep out */
-1, MIPI_DCS_EXIT_SLEEP_MODE,
-2, 50,