WSL2-Linux-Kernel/drivers/staging/fbtft
YueHaibing b57f944785 staging: fbtft: fix strncmp() size warning
strncmp() stops comparing when either the end of one of the first two
arguments is reached or when 'n' characters have been compared, whichever
comes first.That means that strncmp(s1, s2, n) is equivalent to
strcmp(s1, s2) if n exceeds the length of s1 or the length of s2.

This patch avoids that the following warning is reported by smatch:

drivers/staging/fbtft/fbtft_device.c:1458
 fbtft_device_init() error: strncmp() '"list"' too small (5 vs 32)

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-19 08:29:28 +01:00
..
Kconfig staging: fbtft: remove unused FB_TFT_SSD1325 kconfig 2018-01-25 13:10:39 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
README
TODO staging/fbtft: Update TODO and mailing lists 2018-09-10 10:39:19 +02:00
fb_agm1264k-fl.c staging: fbtft: remove redundant license text 2018-01-15 16:03:46 +01:00
fb_bd663474.c staging: fbtft: remove redundant license text 2018-01-15 16:03:46 +01:00
fb_hx8340bn.c staging: fbtft: remove redundant license text 2018-01-15 16:03:46 +01:00
fb_hx8347d.c staging: fbtft: Puts macro arguments in parenthesis to avoid precedence issues - Style 2018-08-08 14:23:16 +02:00
fb_hx8353d.c staging: fbtft: remove redundant license text 2018-01-15 16:03:46 +01:00
fb_hx8357d.c staging: fbtft: remove redundant license text 2018-01-15 16:03:46 +01:00
fb_hx8357d.h staging: fbtft: add SPDX identifiers 2018-01-15 16:03:46 +01:00
fb_ili9163.c staging: fbtft: Puts macro arguments in parenthesis to avoid precedence issues - Style 2018-08-08 14:23:16 +02:00
fb_ili9320.c staging: fbtft: Puts macro arguments in parenthesis to avoid precedence issues - Style 2018-08-08 14:23:16 +02:00
fb_ili9325.c staging: fbtft: Puts macro arguments in parenthesis to avoid precedence issues - Style 2018-08-08 14:23:16 +02:00
fb_ili9340.c staging: fbtft: remove redundant license text 2018-01-15 16:03:46 +01:00
fb_ili9341.c staging: fbtft: Puts macro arguments in parenthesis to avoid precedence issues - Style 2018-08-08 14:23:16 +02:00
fb_ili9481.c staging: fbtft: remove redundant license text 2018-01-15 16:03:46 +01:00
fb_ili9486.c staging: fbtft: remove redundant license text 2018-01-15 16:03:46 +01:00
fb_pcd8544.c staging: fbtft: remove redundant license text 2018-01-15 16:03:46 +01:00
fb_ra8875.c staging: fbtft: remove redundant license text 2018-01-15 16:03:46 +01:00
fb_s6d02a1.c staging: fbtft: Adjust some empty-line problems - Style 2018-08-08 14:23:16 +02:00
fb_s6d1121.c staging: fbtft: Adjust some empty-line problems - Style 2018-08-08 14:23:16 +02:00
fb_sh1106.c staging: fbtft: Erases some repetitive usage of function name - Style 2018-08-08 14:23:16 +02:00
fb_ssd1289.c staging: fbtft: Adjust some empty-line problems - Style 2018-08-08 14:23:16 +02:00
fb_ssd1305.c staging: fbtft: remove redundant license text 2018-01-15 16:03:46 +01:00
fb_ssd1306.c staging: fbtft: Erases some repetitive usage of function name - Style 2018-08-08 14:23:16 +02:00
fb_ssd1325.c staging: fbtft: Erases some repetitive usage of function name - Style 2018-08-08 14:23:16 +02:00
fb_ssd1331.c staging: fbtft: Erases some repetitive usage of function name - Style 2018-08-08 14:23:16 +02:00
fb_ssd1351.c staging: fbtft: Erases some repetitive usage of function name - Style 2018-08-08 14:23:16 +02:00
fb_st7735r.c staging: fbtft: Fixes some alignment issues - Style 2018-08-08 14:23:16 +02:00
fb_st7789v.c staging: fbtft: Fixes some alignment issues - Style 2018-08-08 14:23:16 +02:00
fb_tinylcd.c staging: fbtft: remove redundant license text 2018-01-15 16:03:46 +01:00
fb_tls8204.c staging: fbtft: remove redundant license text 2018-01-15 16:03:46 +01:00
fb_uc1611.c staging: fbtft: Erases some repetitive usage of function name - Style 2018-08-08 14:23:16 +02:00
fb_uc1701.c staging: fbtft: remove redundant license text 2018-01-15 16:03:46 +01:00
fb_upd161704.c staging: fbtft: remove redundant license text 2018-01-15 16:03:46 +01:00
fb_watterott.c staging: fbtft: Fixes some alignment issues - Style 2018-08-08 14:23:16 +02:00
fbtft-bus.c staging: fbtft: Fixes some alignment issues - Style 2018-08-08 14:23:16 +02:00
fbtft-core.c staging: fbtft: Add spaces around / - Style 2018-08-08 14:23:16 +02:00
fbtft-io.c staging: fbtft: Fixes some alignment issues - Style 2018-08-08 14:23:16 +02:00
fbtft-sysfs.c staging: fbtft: Fixes some alignment issues - Style 2018-08-08 14:23:16 +02:00
fbtft.h staging: fbtft: Prefer using the BIT macro 2018-10-03 11:36:08 -07:00
fbtft_device.c staging: fbtft: fix strncmp() size warning 2018-12-19 08:29:28 +01:00
flexfb.c staging: fbtft: Removes one nesting level to help readability - Style 2018-08-08 14:23:16 +02:00
internal.h staging: fbtft: remove redundant license text 2018-01-15 16:03:46 +01:00

README

  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/