Re: [PATCH v4 1/4] fb: Add dev_of_fbinfo() helper for optional sysfs support

From
Helge Deller <deller@gmx.de>
Date
2026-01-11 18:50:40
Also in
dri-devel, linux-omap, linux-staging, lkml
Reply to
Chintan Patel, 2026-01-07
On 1/7/26 05:42, Chintan Patel wrote:
Add dev_of_fbinfo() to return the framebuffer struct device when
CONFIG_FB_DEVICE is enabled, or NULL otherwise.

This allows fbdev drivers to use sysfs interfaces via runtime checks
instead of CONFIG_FB_DEVICE ifdefs, keeping the code clean while
remaining fully buildable.

Suggested-by: Helge Deller <deller@gmx.de>
Reviewed-by: Helge Deller <deller@gmx.de>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Chintan Patel <redacted>
---
  include/linux/fb.h | 9 +++++++++
  1 file changed, 9 insertions(+)
Whole v4 series applied to fbdev git tree.

Thanks!
Helge
Thread (13 messages) 13 messages, 4 authors, last reply 2026-01-11
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help