linux/drivers/staging/fbtft
Kees Cook 69050f8d6d treewide: Replace kmalloc with kmalloc_obj for non-scalar types
This is the result of running the Coccinelle script from
scripts/coccinelle/api/kmalloc_objs.cocci. The script is designed to
avoid scalar types (which need careful case-by-case checking), and
instead replace kmalloc-family calls that allocate struct or union
object instances:

Single allocations:	kmalloc(sizeof(TYPE), ...)
are replaced with:	kmalloc_obj(TYPE, ...)

Array allocations:	kmalloc_array(COUNT, sizeof(TYPE), ...)
are replaced with:	kmalloc_objs(TYPE, COUNT, ...)

Flex array allocations:	kmalloc(struct_size(PTR, FAM, COUNT), ...)
are replaced with:	kmalloc_flex(*PTR, FAM, COUNT, ...)

(where TYPE may also be *VAR)

The resulting allocations no longer return "void *", instead returning
"TYPE *".

Signed-off-by: Kees Cook <kees@kernel.org>
2026-02-21 01:02:28 -08:00
..
fb_agm1264k-fl.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
fb_bd663474.c
fb_hx8340bn.c
fb_hx8347d.c
fb_hx8353d.c
fb_hx8357d.c
fb_hx8357d.h
fb_ili9163.c
fb_ili9320.c staging: fbtft: Remove ftrace-like logging 2024-07-30 09:20:44 +02:00
fb_ili9325.c
fb_ili9340.c
fb_ili9341.c staging: fbtft: ili9341: use macro FBTFT_REGISTER_SPI_DRIVER 2023-07-27 09:53:37 +02:00
fb_ili9481.c
fb_ili9486.c
fb_pcd8544.c
fb_ra8875.c staging: fbtft: Remove ftrace-like logging 2024-07-30 09:20:44 +02:00
fb_s6d02a1.c
fb_s6d1121.c
fb_seps525.c fbtft: seps525: Don't use "proxy" headers 2024-05-04 18:39:24 +02:00
fb_sh1106.c staging: fbtft: Remove ftrace-like logging 2024-07-30 09:20:44 +02:00
fb_ssd1289.c staging: fbtft: Remove ftrace-like logging 2024-07-30 09:20:44 +02:00
fb_ssd1305.c
fb_ssd1306.c staging: fbtft: Remove ftrace-like logging 2024-07-30 09:20:44 +02:00
fb_ssd1325.c staging: fbtft: Remove ftrace-like logging 2024-07-30 09:20:44 +02:00
fb_ssd1331.c staging: fbtft: Remove ftrace-like logging 2024-07-30 09:20:44 +02:00
fb_ssd1351.c staging:fbtft: Using str_true_false() helper instead of hardcoded strings 2024-12-04 16:55:19 +01:00
fb_st7735r.c
fb_st7789v.c staging: fbtft: fb_st7789v: reset display before initialization 2022-02-15 17:14:22 +01:00
fb_tinylcd.c
fb_tls8204.c
fb_uc1611.c staging: fbtft: Remove ftrace-like logging 2024-07-30 09:20:44 +02:00
fb_uc1701.c
fb_upd161704.c
fbtft-bus.c staging: fbtft: Remove ftrace-like logging 2024-07-30 09:20:44 +02:00
fbtft-core.c staging: fbtft: Make framebuffer registration message debug-only 2026-02-14 11:09:47 +01:00
fbtft-io.c
fbtft-sysfs.c staging: fbtft: Make FB_DEVICE dependency optional 2026-02-14 11:09:46 +01:00
fbtft.h staging: Switch back to struct platform_driver::remove() 2024-10-09 11:54:53 +02:00
internal.h
Kconfig staging: fbtft: Make FB_DEVICE dependency optional 2026-02-14 11:09:46 +01: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/