Thread (20 messages) 20 messages, 6 authors, 2026-01-06

Re: [PATCH v3 3/4] fbdev: omapfb: Make FB_DEVICE dependency optional

From: Helge Deller <deller@kernel.org>
Date: 2025-12-30 08:05:09
Also in: linux-fbdev, linux-omap, lkml

* Chintan Patel [off-list ref]:
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@gmx.de>
Signed-off-by: Chintan Patel <redacted>
Reviewed-by: Helge Deller <deller@gmx.de>
---
 drivers/video/fbdev/omap2/omapfb/Kconfig        |  3 ++-
 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c | 16 ++++++++++++----
 2 files changed, 14 insertions(+), 5 deletions(-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help