Skip to contentSkip to conversation

backlight and output sysfs support for acpi video driver

PATCH In review Yu Luming 1 participant 1 message Nov 7, 2006

Subsystems (2)
lore
Share & tools
lore

Yu Luming

author
#0 lore raw

PATCH 3/5 backlight and output sysfs support for acpi video driver

Patch 3/5:
1. Adds backlight and output sysfs support for acpi video driver.
2. several minor coding style fixes and cleanup.

--

 acpi/Kconfig   |    2
 acpi/video.c   |  323 +++++++++++++++++++++++++++++++++++++++++++++------------
 video/Kconfig  |    9 +
 video/Makefile |    1
 4 files changed, 266 insertions(+), 69 deletions(-)
drivers/acpi/Kconfig +1 -1
index 3f7e9f3..1ffbf30 100644
@@ -106,7 +106,7 @@ config ACPI_BUTTON
 
 config ACPI_VIDEO
 	tristate "Video"
-	depends on X86
+	depends on X86 && (BACKLIGHT_CLASS_DEVICE && VIDEO_OUTPUT_CONTROL)
 	help
 	  This driver implement the ACPI Extensions For Display Adapters
 	  for integrated graphics devices on motherboard, as specified in
drivers/acpi/video.c +255 -68

505 lines not on this page · raw message

drivers/video/Kconfig +9 -0
index 7a43020..effcb23 100644
@@ -1644,5 +1644,14 @@ if SYSFS
 	source "drivers/video/backlight/Kconfig"
 endif
 
+
+config VIDEO_OUTPUT_CONTROL
+	tristate "Video Output Switcher control"
+	depends on SYSFS
+	---help---
+	  The output sysfs class driver is to provide video output abstract
+	  layer that can be used to hook platform specific driver methods
+	  to enable/disable display output device through common sysfs
+	  interface.	  
 endmenu
 
drivers/video/Makefile +1 -0
index a6980e9..0f82eed 100644
@@ -108,3 +108,4 @@ obj-$(CONFIG_FB_OF)               += off
 
 # the test framebuffer is last
 obj-$(CONFIG_FB_VIRTUAL)          += vfb.o
+obj-$(CONFIG_VIDEO_OUTPUT_CONTROL) += output.o