]> git.ipfire.org Git - thirdparty/linux.git/commit
staging: fbtft: Make FB_DEVICE dependency optional
authorChintan Patel <chintanlike@gmail.com>
Wed, 7 Jan 2026 04:42:55 +0000 (20:42 -0800)
committerHelge Deller <deller@gmx.de>
Sat, 14 Feb 2026 10:09:46 +0000 (11:09 +0100)
commit553d8a6e512abbddf37b7baa2bde8de691704856
tree3e4cf96d0621c34580974afe40ab6fc821a99a6b
parent39b65316fe9d6d3f730632408ace28d49c5845a4
staging: fbtft: Make FB_DEVICE dependency optional

fbtft provides sysfs interfaces for debugging and gamma configuration,
but these are not required for the core driver.

Drop the hard dependency on CONFIG_FB_DEVICE and make sysfs support
optional by using dev_of_fbinfo() at runtime. When FB_DEVICE is disabled,
sysfs operations are skipped while the code remains buildable and
type-checked.

Suggested-by: Thomas Zimmermann <tzimmermann@suse.de>
Suggested-by: Helge Deller <deller@gmx.de>
Reviewed-by: Helge Deller <deller@gmx.de>
Signed-off-by: Chintan Patel <chintanlike@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/staging/fbtft/Kconfig
drivers/staging/fbtft/fbtft-sysfs.c