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 <[email protected]>
Reviewed-by: Helge Deller <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Chintan Patel <[email protected]>
---
  include/linux/fb.h | 9 +++++++++
  1 file changed, 9 insertions(+)

Whole v4 series applied to fbdev git tree.

Thanks!
Helge

Reply via email to