# Re: \[PATCH v3 0/4\] fbdev: Make CONFIG\_FB\_DEVICE optional for drivers

- From: Andy Shevchenko \<hidden\>
- Date: 2025-12-30 11:34:03 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2025/12/3348746
- Thread: https://ratatoskr.run/linux-fbdev/2025/12/3348412/t.md

```text
On Mon, Dec 29, 2025 at 09:28:18PM -0800, Chintan Patel wrote:
> This series makes CONFIG_FB_DEVICE optional for fbdev drivers that use
> it only for sysfs interfaces, addressing Thomas Zimmermann’s TODO to
> remove hard FB_DEVICE dependencies.
> 
> The series introduces a small helper, dev_of_fbinfo(), which returns
> NULL when CONFIG_FB_DEVICE=n. This allows sysfs code paths to be skipped
> via runtime checks, avoids #ifdef CONFIG_FB_DEVICE clutter, and keeps
> full compile-time syntax checking.

> Signed-off-by: Chintan Patel <redacted>
> ---
> Changes in v3:
> - Use PTR_IF() to conditionally include overlay_sysfs_group in 
>   overlay_sysfs_groups
> - Decouple variable definition and assignment in fbtft_sysfs_init/exit

Any particular reasons you ignored my tag from v2?

-- 
With Best Regards,
Andy Shevchenko


```
