Re: [PATCH v3 1/4] fb: Add dev_of_fbinfo() helper for optional sysfs support
From: Helge Deller
Date: Tue Dec 30 2025 - 03:01:29 EST
* Chintan Patel <chintanlike@xxxxxxxxx>:
> 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@xxxxxx>
> Signed-off-by: Chintan Patel <chintanlike@xxxxxxxxx>
Reviewed-by: Helge Deller <deller@xxxxxx>