misc,acpi,backlight: compal Laptop Extras
Subsystems (2)
PATCH 6/11 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/.
---
MAINTAINERS | 5 drivers/misc/Kconfig | 17 + drivers/misc/Makefile | 5 drivers/misc/compal-laptop.c | 437 +++++++++++++++++++++++++++++++++ 4 files changed, 462 insertions(+), 2 deletions(-)
MAINTAINERS renamed from MAINTAINERS~miscacpibacklight-compal-laptop-extras-3rd-try +5 -0
@@ -1151,6 +1151,11 @@ M: [email protected] L: [email protected] S: Supported +COMPAL LAPTOP SUPPORT +P: Cezary Jackiewicz +M: [email protected] +S: Maintained + COMPUTONE INTELLIPORT MULTIPORT CARD P: Michael H. Warfield M: [email protected]
drivers/misc/Kconfig renamed from drivers/misc/Kconfig~miscacpibacklight-compal-laptop-extras-3rd-try +17 -0
@@ -219,6 +219,23 @@ 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 + Compal FL91/IFL91 + Compal FL92/JFL92 + Compal FT00/IFT00 + + It adds support for Bluetooth, WLAN and LCD brightness control. + + If you have an Compal FL9x/IFL9x/FT00 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 +3 -2
@@ -5,10 +5,11 @@ 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_EEEPC_LAPTOP) += eeepc-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_ATMEL_PWM) += atmel_pwm.o obj-$(CONFIG_ATMEL_SSC) += atmel-ssc.o obj-$(CONFIG_ATMEL_TCLIB) += atmel_tclib.o
drivers/misc/compal-laptop.c new file +437 -0
437 lines not on this page · raw message
_
Len Brown
reviewerQuoted 6 lines · On Mon, 9 Jun 2008, [email protected] wrote:
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)
why is it a good idea to implement this platform specific lcd_level API and at the same time implement the generic backlight API?
thanks,
-Len
Quoted 5 lines · Len Brown
Quoted 2 lines · On Mon, 9 Jun 2008, [email protected] wrote:
From: Cezary Jackiewicz <[email protected]>
Quoted 7 lines
Quoted 4 lines
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)why is it a good idea to implement this platform specific
lcd_levelAPI and at the same time implement the generic backlight API?
I've asked about this before and suggested the lcd_level attribute be removed since the backlight API does everything that attribute does in a standardised way. I never did get a response.
Cheers,
Richard
Dnia 2008-06-10, o godz. 22:28:59
Richard Purdie <[email protected]> napisał(a):
Quoted 11 lines · Len Brown
Quoted 10 lines · On Mon, 9 Jun 2008, [email protected] wrote:
Quoted 7 lines
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)
Quoted 7 lines
Quoted 2 lines
why is it a good idea to implement this platform specific
lcd_levelAPI and at the same time implement the generic backlight API?I've asked about this before and suggested the
lcd_levelattribute be removed since the backlight API does everything that attribute does in a standardised way. I never did get a response.
Driver was rewritten from original msi driver, so this attribute was also copied. I can remove it in a future version and use only standard backlight API.
Signature · 5 lines
Cezary -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html