Skip to contentSkip to conversation

misc,acpi,backlight: compal Laptop Extras

PATCH In review [email protected] 2 participants 2 messages Mar 4, 2008 – Mar 11, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/5 misc,acpi,backlight: compal Laptop Extras

From: Cezary Jackiewicz <[email protected]>

This is driver for Compal Laptop: FL90/IFL90, based on MSI driver.

This driver exports a few files in /sys/devices/platform/compal-laptop/:
lcd_level - screen brightness: contains a single integer in the range 0..7 (rw) wlan - wlan subsystem state: contains 0 or 1 (rw)
bluetooth - bluetooth subsystem state: contains 0 or 1 (rw)
raw - raw value taken from embedded controller register (ro)

In addition to these platform device attributes the driver registers itself in the Linux backlight control subsystem and is available to userspace under /sys/class/backlight/compal-laptop/.

Cc Richard Purdie <[email protected]>
Cc Henrique de Moraes Holschuh <[email protected]>
Cc Len Brown <[email protected]>
Cc Alexey Starikovskiy <[email protected]>

---

 drivers/misc/Kconfig         |   14 +
 drivers/misc/Makefile        |    7 
 drivers/misc/compal-laptop.c |  406 +++++++++++++++++++++++++++++++++
 3 files changed, 424 insertions(+), 3 deletions(-)
drivers/misc/Kconfig renamed from drivers/misc/Kconfig~miscacpibacklight-compal-laptop-extras-3rd-try +14 -0
diff -puN drivers/misc/Kconfig~miscacpibacklight-compal-laptop-extras-3rd-try drivers/misc/Kconfig
@@ -183,6 +183,20 @@ config MSI_LAPTOP
 
 	  If you have an MSI S270 laptop, say Y or M here.
 
+config COMPAL_LAPTOP
+	tristate "Compal Laptop Extras"
+	depends on X86
+	depends on ACPI_EC
+	depends on BACKLIGHT_CLASS_DEVICE
+        ---help---
+	  This is a driver for laptops built by Compal:
+
+	  Compal FL90/IFL90
+
+	  It adds support for Bluetooth, WLAN and LCD brightness control.
+
+	  If you have an Compal FL90/IFL90 laptop, say Y or M here.
+
 config SONY_LAPTOP
 	tristate "Sony Laptop Extras"
 	depends on X86 && ACPI
drivers/misc/Makefile renamed from drivers/misc/Makefile~miscacpibacklight-compal-laptop-extras-3rd-try +4 -3
diff -puN drivers/misc/Makefile~miscacpibacklight-compal-laptop-extras-3rd-try drivers/misc/Makefile
@@ -5,9 +5,10 @@ obj- := misc.o	# Dummy rule to force bui
 
 obj-$(CONFIG_IBM_ASM)		+= ibmasm/
 obj-$(CONFIG_HDPU_FEATURES)	+= hdpuftrs/
-obj-$(CONFIG_MSI_LAPTOP)     += msi-laptop.o
-obj-$(CONFIG_ACER_WMI)     += acer-wmi.o
-obj-$(CONFIG_ASUS_LAPTOP)     += asus-laptop.o
+obj-$(CONFIG_MSI_LAPTOP)	+= msi-laptop.o
+obj-$(CONFIG_COMPAL_LAPTOP)	+= compal-laptop.o
+obj-$(CONFIG_ACER_WMI)		+= acer-wmi.o
+obj-$(CONFIG_ASUS_LAPTOP)	+= asus-laptop.o
 obj-$(CONFIG_ATMEL_PWM)		+= atmel_pwm.o
 obj-$(CONFIG_ATMEL_SSC)		+= atmel-ssc.o
 obj-$(CONFIG_TC1100_WMI)	+= tc1100-wmi.o
drivers/misc/compal-laptop.c new file +406 -0

406 lines not on this page · raw message

_

reviewer
#1 lore raw
Quoted 3 lines · On Tuesday 04 March 2008, [email protected] wrote:

From: Cezary Jackiewicz <[email protected]>

This is driver for Compal Laptop: FL90/IFL90, based on MSI driver.

The MSI driver has an entry in MAINTAINERS.
If this Compal driver is to make it upstream,
it will first need one too.

thanks,
-Len