summaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fb_st7735r.c
diff options
context:
space:
mode:
authorJoe Perches2017-02-23 06:54:57 +0100
committerGreg Kroah-Hartman2017-03-06 09:16:59 +0100
commit999c8c28a89f1c8a681be01964c7239c3cc2685d (patch)
treebc5b95182c884e8599dcc7f383b8874d97a7924f /drivers/staging/fbtft/fb_st7735r.c
parentstaging: fbtft: Make the pointers to s16 init arrays const (diff)
downloadkernel-qcow2-linux-999c8c28a89f1c8a681be01964c7239c3cc2685d.tar.gz
kernel-qcow2-linux-999c8c28a89f1c8a681be01964c7239c3cc2685d.tar.xz
kernel-qcow2-linux-999c8c28a89f1c8a681be01964c7239c3cc2685d.zip
staging: fbtft: Make some s16 arrays const
Using const reduces data size. $ size drivers/staging/fbtft/built-in.o* text data bss dec hex filename 89909 41584 2928 134421 20d15 drivers/staging/fbtft/built-in.o.new 88053 43392 2928 134373 20ce5 drivers/staging/fbtft/built-in.o.old Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft/fb_st7735r.c')
-rw-r--r--drivers/staging/fbtft/fb_st7735r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fb_st7735r.c b/drivers/staging/fbtft/fb_st7735r.c
index 24d17cdc71ab..d98522a39344 100644
--- a/drivers/staging/fbtft/fb_st7735r.c
+++ b/drivers/staging/fbtft/fb_st7735r.c
@@ -25,7 +25,7 @@
#define DEFAULT_GAMMA "0F 1A 0F 18 2F 28 20 22 1F 1B 23 37 00 07 02 10\n" \
"0F 1B 0F 17 33 2C 29 2E 30 30 39 3F 00 07 03 10"
-static s16 default_init_sequence[] = {
+static const s16 default_init_sequence[] = {
-1, MIPI_DCS_SOFT_RESET,
-2, 150, /* delay */