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

From
Helge Deller <deller@kernel.org>
Date
2025-12-30 08:01:23
Also in
dri-devel, lkml
Reply to
Chintan Patel, 2025-12-30
* Chintan Patel [off-list ref]:
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>
Signed-off-by: Chintan Patel <redacted>
Reviewed-by: Helge Deller <deller@gmx.de>
Thread (20 messages) 20 messages, 6 authors, last reply 2026-01-06
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