Skip to contentSkip to conversation

misc: add dell-wmi driver for hotkey control

PATCH Applied [email protected] 2 participants 3 messages Jan 9, 2009 – Apr 4, 2009

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

PATCH 4/6 misc: add dell-wmi driver for hotkey control

From: Matthew Garrett <[email protected]>

Add a WMI driver for Dell laptops. Currently it does nothing but send a generic input event when a button with a picture of a battery on it is pressed, but maybe other uses will appear over time.

---

 MAINTAINERS             |    5 
 drivers/misc/Kconfig    |   10 +
 drivers/misc/Makefile   |    1 
 drivers/misc/dell-wmi.c |  210 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 226 insertions(+)
MAINTAINERS renamed from MAINTAINERS~misc-add-dell-wmi-driver-for-hotkey-control +5 -0
diff -puN MAINTAINERS~misc-add-dell-wmi-driver-for-hotkey-control MAINTAINERS
@@ -1376,6 +1376,11 @@ P:	Doug Warzecha
 M:	[email protected]
 S:	Maintained
 
+DELL WMI EXTRAS DRIVER
+P:	Matthew Garrett
+M:	[email protected]
+S:	Maintained
+
 DEVICE NUMBER REGISTRY
 P:	Torben Mathiasen
 M:	[email protected]
drivers/misc/Kconfig renamed from drivers/misc/Kconfig~misc-add-dell-wmi-driver-for-hotkey-control +10 -0
diff -puN drivers/misc/Kconfig~misc-add-dell-wmi-driver-for-hotkey-control drivers/misc/Kconfig
@@ -136,6 +136,16 @@ config TIFM_7XX1
 	  To compile this driver as a module, choose M here: the module will
 	  be called tifm_7xx1.
 
+config DELL_WMI
+       tristate "Dell WMI extras"
+       depends on ACPI_WMI
+       depends on INPUT
+       help
+         Say Y here if you want to support WMI-based hotkeys on Dell laptops.
+
+         To compile this driver as a module, choose M here: the module will
+         be called dell-wmi.
+
 config ICS932S401
 	tristate "Integrated Circuits ICS932S401"
 	depends on I2C && EXPERIMENTAL
drivers/misc/Makefile renamed from drivers/misc/Makefile~misc-add-dell-wmi-driver-for-hotkey-control +1 -0
diff -puN drivers/misc/Makefile~misc-add-dell-wmi-driver-for-hotkey-control drivers/misc/Makefile
@@ -20,4 +20,5 @@ obj-$(CONFIG_KGDB_TESTS)	+= kgdbts.o
 obj-$(CONFIG_SGI_XP)		+= sgi-xp/
 obj-$(CONFIG_SGI_GRU)		+= sgi-gru/
 obj-$(CONFIG_HP_ILO)		+= hpilo.o
+obj-$(CONFIG_DELL_WMI)		+= dell-wmi.o
 obj-$(CONFIG_C2PORT)		+= c2port/
drivers/misc/dell-wmi.c new file +210 -0

210 lines not on this page · raw message

_

reviewer
#1 lore raw

Andrew,
you already forwarded this one to Linus a few days ago and it is upstream.

I'll move it to the proper directory at some point.

thanks,
Len Brown, Intel Open Source Technology Center

reviewer
#2 lore raw

From: Matthew Garrett <[email protected]>
Date: Fri, 9 Jan 2009 20:17:11 +0000
Subject: [PATCH] dell-wmi: new driver for hotkey control

Add a WMI driver for Dell laptops. Currently it does nothing but send a generic input event when a button with a picture of a battery on it is pressed, but maybe other uses will appear over time.

---

Looks like I screwed up and caused this patch to get dropped. Here it is picked up again, ported on top of 2.6.29.

Matthew, should we proceed with this on in the mix?

thanks,
-Len

 MAINTAINERS                     |    5 +
 drivers/platform/x86/Kconfig    |   10 ++
 drivers/platform/x86/Makefile   |    1 +
 drivers/platform/x86/dell-wmi.c |  210 +++++++++++++++++++++++++++++++++++++++
 4 files changed, 226 insertions(+), 0 deletions(-)
 create mode 100644 drivers/platform/x86/dell-wmi.c
MAINTAINERS +5 -0
index 5d460c9..4ee5964 100644
@@ -1393,6 +1393,11 @@ P:	Doug Warzecha
 M:	[email protected]
 S:	Maintained
 
+DELL WMI EXTRAS DRIVER
+P:	Matthew Garrett
+M:	[email protected]
+S:	Maintained
+
 DEVICE NUMBER REGISTRY
 P:	Torben Mathiasen
 M:	[email protected]
drivers/platform/x86/Kconfig +10 -0
index 3608081..a27bff3 100644
@@ -67,6 +67,16 @@ config DELL_LAPTOP
 	This driver adds support for rfkill and backlight control to Dell
 	laptops.
 
+config DELL_WMI
+	tristate "Dell WMI extras"
+	depends on ACPI_WMI
+	depends on INPUT
+	---help---
+	  Say Y here if you want to support WMI-based hotkeys on Dell laptops.
+
+	  To compile this driver as a module, choose M here: the module will
+	  be called dell-wmi.
+
 config FUJITSU_LAPTOP
 	tristate "Fujitsu Laptop Extras"
 	depends on ACPI
drivers/platform/x86/Makefile +1 -0
index e290651..e40c7bd 100644
@@ -7,6 +7,7 @@ obj-$(CONFIG_EEEPC_LAPTOP)	+= eeepc-laptop.o
 obj-$(CONFIG_MSI_LAPTOP)	+= msi-laptop.o
 obj-$(CONFIG_COMPAL_LAPTOP)	+= compal-laptop.o
 obj-$(CONFIG_DELL_LAPTOP)	+= dell-laptop.o
+obj-$(CONFIG_DELL_WMI)		+= dell-wmi.o
 obj-$(CONFIG_ACER_WMI)		+= acer-wmi.o
 obj-$(CONFIG_HP_WMI)		+= hp-wmi.o
 obj-$(CONFIG_TC1100_WMI)	+= tc1100-wmi.o
drivers/platform/x86/dell-wmi.c new file +210 -0

210 lines not on this page · raw message

Signature · 1 line
1.6.2.2.404.ge96f3