diff options
author | Joe Perches <joe@perches.com> | 2017-02-22 21:54:57 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-06 09:16:59 +0100 |
commit | 999c8c28a89f1c8a681be01964c7239c3cc2685d (patch) | |
tree | bc5b95182c884e8599dcc7f383b8874d97a7924f /drivers/staging/fbtft/flexfb.c | |
parent | 0a859b31ec9c8bce9aacc9ccae3af6aab84b04c7 (diff) | |
download | linux-999c8c28a89f1c8a681be01964c7239c3cc2685d.tar.bz2 |
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/flexfb.c')
-rw-r--r-- | drivers/staging/fbtft/flexfb.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/fbtft/flexfb.c b/drivers/staging/fbtft/flexfb.c index f749c057901f..7134624a16c2 100644 --- a/drivers/staging/fbtft/flexfb.c +++ b/drivers/staging/fbtft/flexfb.c @@ -67,7 +67,7 @@ static const s16 *initp; static int initp_num; /* default init sequences */ -static s16 st7735r_init[] = { +static const s16 st7735r_init[] = { -1, 0x01, -2, 150, -1, 0x11, @@ -96,7 +96,7 @@ static s16 st7735r_init[] = { -3 }; -static s16 ssd1289_init[] = { +static const s16 ssd1289_init[] = { -1, 0x00, 0x0001, -1, 0x03, 0xA8A4, -1, 0x0C, 0x0000, @@ -142,7 +142,7 @@ static s16 ssd1289_init[] = { -3 }; -static s16 hx8340bn_init[] = { +static const s16 hx8340bn_init[] = { -1, 0xC1, 0xFF, 0x83, 0x40, -1, 0x11, -2, 150, @@ -162,7 +162,7 @@ static s16 hx8340bn_init[] = { -3 }; -static s16 ili9225_init[] = { +static const s16 ili9225_init[] = { -1, 0x0001, 0x011C, -1, 0x0002, 0x0100, -1, 0x0003, 0x1030, @@ -204,7 +204,7 @@ static s16 ili9225_init[] = { -3 }; -static s16 ili9320_init[] = { +static const s16 ili9320_init[] = { -1, 0x00E5, 0x8000, -1, 0x0000, 0x0001, -1, 0x0001, 0x0100, @@ -265,7 +265,7 @@ static s16 ili9320_init[] = { -3 }; -static s16 ili9325_init[] = { +static const s16 ili9325_init[] = { -1, 0x00E3, 0x3008, -1, 0x00E7, 0x0012, -1, 0x00EF, 0x1231, @@ -324,7 +324,7 @@ static s16 ili9325_init[] = { -3 }; -static s16 ili9341_init[] = { +static const s16 ili9341_init[] = { -1, 0x28, -2, 20, -1, 0xCF, 0x00, 0x83, 0x30, @@ -349,7 +349,7 @@ static s16 ili9341_init[] = { -3 }; -static s16 ssd1351_init[] = { +static const s16 ssd1351_init[] = { -1, 0xfd, 0x12, -1, 0xfd, 0xb1, -1, 0xae, |