From: Chintan Patel <chintanlike@gmail.com>
To: linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev,
linux-omap@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
tzimmermann@suse.de, andy@kernel.org, deller@gmx.de,
gregkh@linuxfoundation.org, Chintan Patel <chintanlike@gmail.com>
Subject: [PATCH v2 0/4] fbdev: Make CONFIG_FB_DEVICE optional for drivers
Date: Thu, 18 Dec 2025 21:43:15 -0800 [thread overview]
Message-ID: <20251219054320.447281-1-chintanlike@gmail.com> (raw)
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
next reply other threads:[~2025-12-19 5:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-19 5:43 Chintan Patel [this message]
2025-12-19 5:43 ` [PATCH v2 1/4] fb: Add dev_of_fbinfo() helper for optional sysfs support Chintan Patel
2025-12-27 14:23 ` Andy Shevchenko
2025-12-19 5:43 ` [PATCH v2 2/4] staging: fbtft: Make FB_DEVICE dependency optional Chintan Patel
2025-12-27 14:15 ` Andy Shevchenko
2025-12-27 14:19 ` Andy Shevchenko
2025-12-28 3:36 ` Chintan Patel
2025-12-19 5:43 ` [PATCH v2 3/4] fbdev: omapfb: " Chintan Patel
2025-12-19 5:43 ` [PATCH v2 4/4] fbdev: sh_mobile_lcdc: " Chintan Patel
2025-12-27 14:21 ` Andy Shevchenko
2025-12-27 14:24 ` [PATCH v2 0/4] fbdev: Make CONFIG_FB_DEVICE optional for drivers Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251219054320.447281-1-chintanlike@gmail.com \
--to=chintanlike@gmail.com \
--cc=andy@kernel.org \
--cc=deller@gmx.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).