eeepc-wmi: new driver for WMI based hotkeys on Eee PC laptops
PATCH v4 1/1 eeepc-wmi: new driver for WMI based hotkeys on Eee PC laptops
Changes since v3:
1. Call sparse_keymap_free before input_unregister_device
Changes since v2:
1. Define keymap as const
2. Check the return value of wmi_get_event_data
3. Mark brightness key events as KE_IGNORE
4. Replace printk with pr_ family functions
5. Add some missing calls to sparse_keymap_free
Changes since v1:
1. Use sparse keymap
2. Not send brightness input events
3. Fix memory leak of acpi_object
4. Set up input device before registering wmi notifier
5. Not return success if GUID is not found
6. Not check guid here in wmi_exit
---
Add a WMI driver for Eee PC laptops. Currently it only supports hotkeys.
Signed-off-by Yong Wang <[email protected]>
--- drivers/platform/x86/Kconfig | 10 +++ drivers/platform/x86/Makefile | 1 drivers/platform/x86/eeepc-wmi.c | 157 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 168 insertions(+)
drivers/platform/x86/Kconfig +10 -0
@@ -385,6 +385,16 @@ config EEEPC_LAPTOP If you have an Eee PC laptop, say Y or M here. +config EEEPC_WMI + tristate "Eee PC WMI Hotkey Driver (EXPERIMENTAL)" + depends on ACPI_WMI + depends on INPUT + depends on EXPERIMENTAL + ---help--- + Say Y here if you want to support WMI-based hotkeys on Eee PC laptops. + + To compile this driver as a module, choose M here: the module will + be called eeepc-wmi. config ACPI_WMI tristate "WMI"
drivers/platform/x86/Makefile +1 -0
@@ -4,6 +4,7 @@ # obj-$(CONFIG_ASUS_LAPTOP) += asus-laptop.o obj-$(CONFIG_EEEPC_LAPTOP) += eeepc-laptop.o +obj-$(CONFIG_EEEPC_WMI) += eeepc-wmi.o obj-$(CONFIG_MSI_LAPTOP) += msi-laptop.o obj-$(CONFIG_ACPI_CMPC) += classmate-laptop.o obj-$(CONFIG_COMPAL_LAPTOP) += compal-laptop.o
drivers/platform/x86/eeepc-wmi.c new file +157 -0
157 lines not on this page · raw message