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

From: Andy Shevchenko
Date: Sat Dec 27 2025 - 09:26:12 EST


On Fri, Dec 19, 2025 at 7:43 AM Chintan Patel <chintanlike@xxxxxxxxx> 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@xxxxxxxxxx>

--
With Best Regards,
Andy Shevchenko