# 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 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2025/12/3346831
- Thread: https://ratatoskr.run/linux-fbdev/2025/12/3339894/t.md

```text
On Fri, Dec 19, 2025 at 7:43 AM Chintan Patel [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
```
