Re: [PATCH v3 3/4] fbdev: omapfb: Make FB_DEVICE dependency optional
From: Helge Deller
Date: Tue Dec 30 2025 - 03:05:20 EST
* Chintan Patel <chintanlike@xxxxxxxxx>:
> omapfb provides several sysfs interfaces for framebuffer configuration
> and debugging, but these are not required for the core driver.
>
> Remove the hard dependency on CONFIG_FB_DEVICE and make sysfs support
> optional by using dev_of_fbinfo() to obtain the backing device at runtime.
> When FB_DEVICE is disabled, sysfs operations are skipped while the code
> still builds and is type-checked.
>
> Suggested-by: Helge Deller <deller@xxxxxx>
> Signed-off-by: Chintan Patel <chintanlike@xxxxxxxxx>
Reviewed-by: Helge Deller <deller@xxxxxx>
> ---
> drivers/video/fbdev/omap2/omapfb/Kconfig | 3 ++-
> drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c | 16 ++++++++++++----
> 2 files changed, 14 insertions(+), 5 deletions(-)