[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251219054320.447281-1-chintanlike@gmail.com>
Date: Thu, 18 Dec 2025 21:43:15 -0800
From: Chintan Patel <chintanlike@...il.com>
To: linux-fbdev@...r.kernel.org,
linux-staging@...ts.linux.dev,
linux-omap@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
dri-devel@...ts.freedesktop.org,
tzimmermann@...e.de,
andy@...nel.org,
deller@....de,
gregkh@...uxfoundation.org,
Chintan Patel <chintanlike@...il.com>
Subject: [PATCH v2 0/4] fbdev: Make CONFIG_FB_DEVICE optional for drivers
This series makes CONFIG_FB_DEVICE optional for fbdev drivers that use
it only for sysfs interfaces, addressing Thomas Zimmermann’s TODO to
remove hard FB_DEVICE dependencies.
The series introduces a small helper, dev_of_fbinfo(), which returns
NULL when CONFIG_FB_DEVICE=n. This allows sysfs code paths to be skipped
via runtime checks, avoids #ifdef CONFIG_FB_DEVICE clutter, and keeps
full compile-time syntax checking.
Changes in v2:
Add dev_of_fbinfo() helper (suggested by Geert Uytterhoeven)
Replace #ifdef CONFIG_FB_DEVICE blocks with runtime NULL checks
Switch to fb_dbg() / fb_info() logging (suggested by Thomas Zimmermann)
Chintan Patel (4):
fb: Add dev_of_fbinfo() helper for optional sysfs support
staging: fbtft: Make FB_DEVICE dependency optional
fbdev: omapfb: Make FB_DEVICE dependency optional
fbdev: sh_mobile_lcdc: Make FB_DEVICE dependency optional
drivers/staging/fbtft/Kconfig | 5 ++++-
drivers/staging/fbtft/fbtft-sysfs.c | 18 ++++++++++++++----
drivers/video/fbdev/omap2/omapfb/Kconfig | 3 ++-
.../video/fbdev/omap2/omapfb/omapfb-sysfs.c | 16 ++++++++++++----
drivers/video/fbdev/sh_mobile_lcdcfb.c | 9 +++++++++
include/linux/fb.h | 9 +++++++++
6 files changed, 50 insertions(+), 10 deletions(-)
--
2.43.0
Powered by blists - more mailing lists