misc,acpi,backlight: MSI S270 Laptop support, fifth try
Subsystems (2)
PATCH 1/1 misc,acpi,backlight: MSI S270 Laptop support, fifth try
From: Lennart Poettering <[email protected]>
A driver for the special features of MSI S270 laptops (and maybe other MSI laptops). This driver implements a backlight device for controlling LCD brightness (/sys/class/backlight/msi-laptop-bl/). In addition it allows access to the WLAN and Bluetooth states through a platform driver (/sys/devices/platform/msi-laptop-pf/).
---
This is the fifth version of this driver. Changes to the previous version are mostly cosmetics: on request of Andrew Morton I replaced indentation with spaces by tabs (by passing it through "unexpand").
On request of Dmitry Torokhov I replaced
calls to platform_device_register_simple() by
platform_device_alloc()/platform_device_add().
Applies to Len Brown's current linux-acpi tree.
Len, please merge!
Thanks,
Lennart
MAINTAINERS | 7 + drivers/acpi/ec.c | 2 drivers/misc/Kconfig | 19 ++ drivers/misc/Makefile | 1 drivers/misc/msi-laptop.c | 395 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 424 insertions(+), 0 deletions(-)
MAINTAINERS +7 -0
@@ -1978,6 +1978,13 @@ M: [email protected] L: [email protected] S: Maintained +MSI LAPTOP SUPPORT +P: Lennart Poettering +M: [email protected] +L: https://tango.0pointer.de/mailman/listinfo/s270-linux +W: http://0pointer.de/lennart/tchibo.html +S: Maintained + MTRR AND SIMILAR SUPPORT [i386] P: Richard Gooch M: [email protected]
drivers/acpi/ec.c +2 -0
@@ -384,6 +384,8 @@ extern int ec_transaction(u8 command, wdata_len, rdata, rdata_len); } +EXPORT_SYMBOL (ec_transaction); +static int acpi_ec_query (struct acpi_ec *ec,u8 *data) {int result;
drivers/misc/Kconfig +19 -0
@@ -28,5 +28,24 @@ config IBM_ASM If unsure, say N. +config MSI_LAPTOP + tristate "MSI Laptop Extras" + depends on X86 + depends on ACPI_EC + depends on BACKLIGHT_CLASS_DEVICE + ---help--- + This is a driver for laptops built by MSI (MICRO-STAR + INTERNATIONAL): + + MSI MegaBook S270 (MS-1013) + Cytron/TCM/Medion/Tchibo MD96100/SAM2000 + + It adds support for Bluetooth, WLAN and LCD brightness control. + + More information about this driver is available at + <http://0pointer.de/lennart/tchibo.html>. + + If you have an MSI S270 laptop, say Y or M here. + endmenu
drivers/misc/Makefile +1 -0
@@ -5,3 +5,4 @@ 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
drivers/misc/msi-laptop.c new file +395 -0
395 lines not on this page · raw message
Signature · 6 lines
1.4.1.1 -- Lennart Poettering; lennart [at] poettering [dot] net ICQ# 11060553; GPG 0x1A015CC4; http://0pointer.net/lennart/
ACPI EC part applied.
msi-laptop applied to acpi-test (after trailing whitespace cleaned)
thanks,
-Len
Quoted 33 lines · Lennart Poettering
This is the fifth version of this driver. Changes to the previous version are mostly cosmetics: on request of Andrew Morton I replaced indentation with spaces by tabs (by passing it through "unexpand").
drivers/acpi/ec.c +2
-0@@ -384,6 +384,8 @@ extern int ec_transaction(u8 command, wdata_len, rdata, rdata_len); } +EXPORT_SYMBOL (ec_transaction); +static int acpi_ec_query (struct acpi_ec *ec,u8 *data) {int result;drivers/misc/Kconfig +10
-0@@ -28,5 +28,24 @@ config IBM_ASM If unsure, say N. +config MSI_LAPTOP + tristate "MSI Laptop Extras" + depends on X86 + depends on ACPI_EC + depends on BACKLIGHT_CLASS_DEVICE + ---help--- + This is a driver for laptops built by MSI (MICRO-STAR + INTERNATIONAL): + + MSI MegaBook S270 (MS-1013)
drivers/misc/Kconfig config IBM_ASM · line 50
Quoted 10 lines
drivers/misc/Kconfig +9
-0+ Cytron/TCM/Medion/Tchibo MD96100/SAM2000 + + It adds support for Bluetooth, WLAN and LCD brightness control. + + More information about this driver is available at + <http://0pointer.de/lennart/tchibo.html>. + + If you have an MSI S270 laptop, say Y or M here. + endmenu
This part is still spaces only. The help text should be indented by tab + 2 spaces.
Jan
Quoted 6 lines · Jan Dittmer
drivers/misc/Kconfig
Quoted 1 line · Lennart Poettering
drivers/misc/Kconfig +0
-0This part is still spaces only. The help text should be indented by tab + 2 spaces.
fixed.
thanks,
-Len