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

From
Andy Shevchenko <hidden>
Date
2025-12-27 14:23:50
Also in
dri-devel, linux-omap, linux-staging, lkml
Reply to
Chintan Patel, 2025-12-19
On Fri, Dec 19, 2025 at 7:43 AM Chintan Patel [off-list ref] 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.
Reviewed-by: Andy Shevchenko <andy@kernel.org>

-- 
With Best Regards,
Andy Shevchenko
Thread (11 messages) 11 messages, 2 authors, last reply 2025-12-28
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