linux/drivers/staging/fbtft
Colin Ian King 64e9c200a0 staging: fbtft: make several arrays static const, makes object smaller
Don't populate the arrays on the stack but instead make them
static const. Makes the object code smaller by 1329 bytes.

Before:
   text	   data	    bss	    dec	    hex	filename
   5581	   1488	     64	   7133	   1bdd	drivers/staging/fbtft/fb_hx8340bn.o
   5444	   1264	      0	   6708	   1a34	drivers/staging/fbtft/fb_hx8347d.o
   3581	   1360	      0	   4941	   134d	drivers/staging/fbtft/fb_ili9163.o
   7154	   1552	      0	   8706	   2202	drivers/staging/fbtft/fb_ili9320.o
   7478	   2544	      0	  10022	   2726	drivers/staging/fbtft/fb_ili9325.o
   6327	   1424	      0	   7751	   1e47	drivers/staging/fbtft/fb_s6d1121.o
   6498	   1776	      0	   8274	   2052	drivers/staging/fbtft/fb_ssd1289.o

After:
   text	   data	    bss	    dec	    hex	filename
   5376	   1584	     64	   7024	   1b70	drivers/staging/fbtft/fb_hx8340bn.o
   5276	   1328	      0	   6604	   19cc	drivers/staging/fbtft/fb_hx8347d.o
   3581	   1360	      0	   4941	   134d	drivers/staging/fbtft/fb_ili9163.o
   6905	   1616	      0	   8521	   2149	drivers/staging/fbtft/fb_ili9320.o
   7229	   2608	      0	   9837	   266d	drivers/staging/fbtft/fb_ili9325.o
   6030	   1488	      0	   7518	   1d5e	drivers/staging/fbtft/fb_s6d1121.o
   6249	   1872	      0	   8121	   1fb9	drivers/staging/fbtft/fb_ssd1289.o

(gcc version 9.2.1, amd64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190906153052.31846-1-colin.king@canonical.com
2019-09-17 14:38:53 +02:00
..
fb_agm1264k-fl.c staging: fbtft: fb_agm1264k-fl.c: Replace bit shifting with BIT macro 2019-04-02 19:57:11 +02:00
fb_bd663474.c Staging: fbtft: Switch to the gpio descriptor interface 2019-01-18 11:01:02 +01:00
fb_hx8340bn.c staging: fbtft: make several arrays static const, makes object smaller 2019-09-17 14:38:53 +02:00
fb_hx8347d.c staging: fbtft: make several arrays static const, makes object smaller 2019-09-17 14:38:53 +02:00
fb_hx8353d.c
fb_hx8357d.c
fb_hx8357d.h
fb_ili9163.c staging: fbtft: make several arrays static const, makes object smaller 2019-09-17 14:38:53 +02:00
fb_ili9320.c staging: fbtft: make several arrays static const, makes object smaller 2019-09-17 14:38:53 +02:00
fb_ili9325.c staging: fbtft: make several arrays static const, makes object smaller 2019-09-17 14:38:53 +02:00
fb_ili9340.c Staging: fbtft: Switch to the gpio descriptor interface 2019-01-18 11:01:02 +01:00
fb_ili9341.c
fb_ili9481.c
fb_ili9486.c
fb_pcd8544.c Staging: fbtft: Switch to the gpio descriptor interface 2019-01-18 11:01:02 +01:00
fb_ra8875.c staging: fbtft: fixed format-string errors. 2019-03-18 07:06:08 +01:00
fb_s6d02a1.c
fb_s6d1121.c staging: fbtft: make several arrays static const, makes object smaller 2019-09-17 14:38:53 +02:00
fb_sh1106.c Staging: fbtft: Switch to the gpio descriptor interface 2019-01-18 11:01:02 +01:00
fb_ssd1289.c staging: fbtft: make several arrays static const, makes object smaller 2019-09-17 14:38:53 +02:00
fb_ssd1305.c Staging: fbtft: Switch to the gpio descriptor interface 2019-01-18 11:01:02 +01:00
fb_ssd1306.c staging: fbtft: ternary statement to if statement. 2019-03-19 14:35:42 +01:00
fb_ssd1325.c Staging: fbtft: Switch to the gpio descriptor interface 2019-01-18 11:01:02 +01:00
fb_ssd1331.c staging: fbtft: line over 80 characters 2019-03-18 07:06:01 +01:00
fb_ssd1351.c staging: fbtft: fb_ssd1351.c: Replace bit shifting with BIT macro 2019-04-02 19:57:11 +02:00
fb_st7735r.c
fb_st7789v.c
fb_tinylcd.c Staging: fbtft: Alignment should match open parenthesis 2019-02-26 11:40:07 +01:00
fb_tls8204.c Staging: fbtft: Switch to the gpio descriptor interface 2019-01-18 11:01:02 +01:00
fb_uc1611.c Staging: fbtft: Switch to the gpio descriptor interface 2019-01-18 11:01:02 +01:00
fb_uc1701.c Staging: fbtft: Switch to the gpio descriptor interface 2019-01-18 11:01:02 +01:00
fb_upd161704.c Staging: fbtft: Switch to the gpio descriptor interface 2019-01-18 11:01:02 +01:00
fb_watterott.c staging: fbtft: convert a macro to a function. 2019-03-18 07:05:22 +01:00
fbtft_device.c staging: fbtft: fixed format-string errors. 2019-03-18 07:06:08 +01:00
fbtft-bus.c Staging: fbtft: Switch to the gpio descriptor interface 2019-01-18 11:01:02 +01:00
fbtft-core.c fbdev: make unregister/unlink functions not fail 2019-06-12 20:28:52 +02:00
fbtft-io.c staging: fbtft: fixed format-string errors. 2019-03-18 07:06:08 +01:00
fbtft-sysfs.c
fbtft.h staging: fbtft: fixed format-string errors. 2019-03-18 07:06:08 +01:00
flexfb.c staging: fbtft: line over 80 characters 2019-03-18 07:06:01 +01:00
internal.h
Kconfig staging: add missing SPDX lines to Kconfig files 2019-04-03 11:10:15 +02:00
Makefile
README
TODO

  FBTFT
=========

Linux Framebuffer drivers for small TFT LCD display modules.
The module 'fbtft' makes writing drivers for some of these displays very easy.

Development is done on a Raspberry Pi running the Raspbian "wheezy" distribution.

INSTALLATION
  Download kernel sources

  From Linux 3.15
    cd drivers/video/fbdev/fbtft
    git clone https://github.com/notro/fbtft.git

    Add to drivers/video/fbdev/Kconfig:   source "drivers/video/fbdev/fbtft/Kconfig"
    Add to drivers/video/fbdev/Makefile:  obj-y += fbtft/

  Before Linux 3.15
    cd drivers/video
    git clone https://github.com/notro/fbtft.git

    Add to drivers/video/Kconfig:   source "drivers/video/fbtft/Kconfig"
    Add to drivers/video/Makefile:  obj-y += fbtft/

  Enable driver(s) in menuconfig and build the kernel


See wiki for more information: https://github.com/notro/fbtft/wiki


Source: https://github.com/notro/fbtft/