Skip to contentSkip to conversation

dropped oqo patch series

PATCH New Len Brown 1 participant 5 messages Dec 31, 2009

Subsystems (2)
lore
Share & tools
lore

Len Brown

author reviewer
#0 lore raw

I'm now deleting the dead branch it lived on.

thanks,
Len Brown, Intel Open Source Technology Center

author reviewer
#1 lore raw

PATCH 1/4 platform/x86: Add oqo-wmi driver for model 2 OQO backlight and rfkill control

From: Matthew Garrett <[email protected]>

oqo-wmi provides a WMI-based interface to backlight and rfkill control on model 2 OQO devices. It was originally written by Brian Julin (<[email protected]>) - I've ported it to the rfkill layer and tidied it up a little.

---
 MAINTAINERS                    |    5 +
 drivers/platform/x86/Kconfig   |   13 +
 drivers/platform/x86/Makefile  |    1 +
 drivers/platform/x86/oqo-wmi.c |  941 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 960 insertions(+), 0 deletions(-)
 create mode 100644 drivers/platform/x86/oqo-wmi.c
MAINTAINERS +5 -0
index 5d460c9..067c0af 100644
@@ -3268,6 +3268,11 @@ M:	[email protected]
 L:	[email protected]
 S:	Maintained
 
+OQO WMI EXTRAS DRIVER
+P:	Matthew Garrett
+M:	[email protected]
+S:	Maintained
+
 ORACLE CLUSTER FILESYSTEM 2 (OCFS2)
 P:	Mark Fasheh
 M:	[email protected]
drivers/platform/x86/Kconfig +13 -0
index 3608081..5f728f2 100644
@@ -133,6 +133,19 @@ config MSI_LAPTOP
 
 	  If you have an MSI S270 laptop, say Y or M here.
 
+config OQO_WMI
+       tristate "OQO WMI extras"
+       depends on ACPI_WMI
+       depends on INPUT
+       depends on RFKILL
+       depends on BACKLIGHT_CLASS_DEVICE
+       help
+         Say Y here if you want to support rfkill and backlight control on
+         series 2 OQO handheld devices.
+
+         To compile this driver as a module, choose M here: the module will
+         be called oqo-wmi.
+
 config PANASONIC_LAPTOP
 	tristate "Panasonic Laptop Extras"
 	depends on INPUT && ACPI
drivers/platform/x86/Makefile +1 -0
index e290651..37ac07f 100644
@@ -13,6 +13,7 @@ obj-$(CONFIG_TC1100_WMI)	+= tc1100-wmi.o
 obj-$(CONFIG_SONY_LAPTOP)	+= sony-laptop.o
 obj-$(CONFIG_THINKPAD_ACPI)	+= thinkpad_acpi.o
 obj-$(CONFIG_FUJITSU_LAPTOP)	+= fujitsu-laptop.o
+obj-$(CONFIG_OQO_WMI)		+= oqo-wmi.o
 obj-$(CONFIG_PANASONIC_LAPTOP)	+= panasonic-laptop.o
 obj-$(CONFIG_INTEL_MENLOW)	+= intel_menlow.o
 obj-$(CONFIG_ACPI_WMI)		+= wmi.o
drivers/platform/x86/oqo-wmi.c new file +941 -0

941 lines not on this page · raw message

Signature · 1 line
1.6.0.6
author reviewer
#2 lore raw

PATCH 2/4 oqo: dev_set_name()

In reply to Len Brown

From: Len Brown <[email protected]>

---
 drivers/platform/x86/oqo-wmi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/platform/x86/oqo-wmi.c +1 -1
index 940e605..0a88af8 100644
@@ -592,7 +592,7 @@ static int __devinit oqo_kine_init(void)
 	    oqo_kine->absmax[ABS_Y] =
 	    oqo_kine->absmax[ABS_Z] = oqo_kine->absmax[ABS_MISC] = 32767;
 
-	memcpy(oqo_kine->dev.bus_id, "kine", 4);
+	dev_set_name(&oqo_kine->dev, "kine");
 
 	oqo_kine_polled = input_allocate_polled_device();
 	if (!oqo_kine_polled) {
Signature · 1 line
1.6.0.6
author reviewer
#3 lore raw

PATCH 3/4 x86: oqo: depends on INPUT_POLLDEV

In reply to Len Brown

From: Randy Dunlap <[email protected]>

oqo driver uses polled input functions, so make it depend on INPUT_POLLDEV.

ERROR: "input_register_polled_device" [drivers/platform/x86/oqo-wmi.ko] undefined!
ERROR: "input_allocate_polled_device" [drivers/platform/x86/oqo-wmi.ko] undefined!
ERROR: "input_free_polled_device" [drivers/platform/x86/oqo-wmi.ko] undefined!
ERROR: "input_unregister_polled_device" [drivers/platform/x86/oqo-wmi.ko] undefined!

---
 drivers/platform/x86/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/platform/x86/Kconfig +1 -1
index 5f728f2..4c0993b 100644
@@ -136,7 +136,7 @@ config MSI_LAPTOP
 config OQO_WMI
        tristate "OQO WMI extras"
        depends on ACPI_WMI
-       depends on INPUT
+       depends on INPUT && INPUT_POLLDEV
        depends on RFKILL
        depends on BACKLIGHT_CLASS_DEVICE
        help
Signature · 1 line
1.6.0.6
author reviewer
#4 lore raw

PATCH 4/4 oqo: select INPUT_POLLDEV From: Randy Dunlap <[email protected]>

In reply to Len Brown

From: Randy Dunlap <[email protected]>

OQO_WMI uses INPUT_POLLDEV, but it can select that instead of depending on it, since it represents library code.

---
 drivers/platform/x86/Kconfig |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/platform/x86/Kconfig +2 -1
index 4c0993b..cc1a7a9 100644
@@ -136,9 +136,10 @@ config MSI_LAPTOP
 config OQO_WMI
        tristate "OQO WMI extras"
        depends on ACPI_WMI
-       depends on INPUT && INPUT_POLLDEV
+       depends on INPUT
        depends on RFKILL
        depends on BACKLIGHT_CLASS_DEVICE
+	select INPUT_POLLDEV
        help
          Say Y here if you want to support rfkill and backlight control on
          series 2 OQO handheld devices.
Signature · 1 line
1.6.0.6