]> www.infradead.org Git - linux.git/commit
fbdev: sstfb: Make CONFIG_FB_DEVICE optional
authorGonzalo Silvalde Blanco <gonzalo.silvalde@gmail.com>
Fri, 4 Oct 2024 15:24:29 +0000 (17:24 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 15 Oct 2024 08:07:31 +0000 (10:07 +0200)
commit447794e44744aff3c0f11942b83b878b8bb6f72b
treea01d1a89080cc42324e0bedc319ac911dbbb4993
parent8e929cb546ee42c9a61d24fae60605e9e3192354
fbdev: sstfb: Make CONFIG_FB_DEVICE optional

The sstfb driver currently depends on CONFIG_FB_DEVICE to create sysfs
entries and access info->dev. This patch wraps the relevant code blocks
with #ifdef CONFIG_FB_DEVICE, allowing the driver to be built and used
even if CONFIG_FB_DEVICE is not selected.

The sysfs setting only controls the VGA pass-through state and is not
required for the display to work correctly.
(See: http://vogonswiki.com/index.php/VGA_passthrough_cable
for more information.)

Added some fixes from Thomas Zimmermann.

Signed-off-by: Gonzalo Silvalde Blanco <gonzalo.silvalde@gmail.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/Kconfig
drivers/video/fbdev/sstfb.c