eeepc-laptop - switch to using sparse keymap library
PATCH 1/1 eeepc-laptop - switch to using sparse keymap library
Switch the driver to use sparse keymap library instead of using custom implementation of keymap handling.
---
Updated to apply on acpi-test.
drivers/platform/x86/Kconfig | 1 drivers/platform/x86/eeepc-laptop.c | 187 ++++++++++------------------------- 2 files changed, 53 insertions(+), 135 deletions(-)
drivers/platform/x86/Kconfig +1 -0
@@ -337,6 +337,7 @@ config EEEPC_LAPTOP select HWMON select LEDS_CLASS select NEW_LEDS + select INPUT_SPARSEKMAP ---help--- This driver supports the Fn-Fx keys on Eee PC laptops.
drivers/platform/x86/eeepc-laptop.c +52 -135
237 lines not on this page · raw message
Signature · 1 line
Dmitry
Quoted 7 lines · Dmitry Torokhov
Switch the driver to use sparse keymap library instead of using custom implementation of keymap handling.
Signed-off-by Dmitry Torokhov <[email protected]>---
Updated to apply on acpi-test.
Thanks! Everything seems to work except for the "brightness up" key :-).
drivers/platform/x86/eeepc-laptop.c static const char *cm_setv[] = { · line 138
Quoted 6 lines
drivers/platform/x86/eeepc-laptop.c +3
-2- {KE_KEY, NOTIFY_BRN_MIN, KEY_BRIGHTNESSDOWN }, - {KE_KEY, NOTIFY_BRN_MAX, KEY_BRIGHTNESSUP }, + { KE_KEY, NOTIFY_BRN_MIN, { KEY_BRIGHTNESSDOWN } }, + { KE_IGNORE, NOTIFY_BRN_MIN + 1, }, + { KE_KEY, NOTIFY_BRN_MIN + 2, { KEY_BRIGHTNESSUP } },
Alan
Quoted 11 lines · Alan Jenkins
Quoted 7 lines · Dmitry Torokhov
Switch the driver to use sparse keymap library instead of using custom implementation of keymap handling.
Signed-off-by Dmitry Torokhov <[email protected]>---
Updated to apply on acpi-test.
Thanks! Everything seems to work except for the "brightness up" key :-).
Hmm, indeed, not sure what exactly I was thinking... How about this one?
Signature · 11 lines
Dmitry Input: eeepc-laptop - switch to using sparse keymap library Signed-off-by: Dmitry Torokhov <[email protected]> --- drivers/platform/x86/Kconfig | 1 drivers/platform/x86/eeepc-laptop.c | 186 ++++++++++------------------------- 2 files changed, 52 insertions(+), 135 deletions(-)
drivers/platform/x86/Kconfig +1 -0
@@ -336,6 +336,7 @@ config EEEPC_LAPTOP select HWMON select LEDS_CLASS select NEW_LEDS + select INPUT_SPARSEKMAP ---help--- This driver supports the Fn-Fx keys on Eee PC laptops.
drivers/platform/x86/eeepc-laptop.c +51 -135
236 lines not on this page · raw message
Alan Jenkins
Tested-byQuoted 13 lines · Dmitry Torokhov
Quoted 2 lines · Alan Jenkins
Thanks! Everything seems to work except for the "brightness up" key :-).
Hmm, indeed, not sure what exactly I was thinking... How about this one?
--
DmitryInput: eeepc-laptop - switch to using sparse keymap library
Quoted 7 lines
Signed-off-by Dmitry Torokhov <[email protected]>---
drivers/platform/x86/Kconfig | 1 drivers/platform/x86/eeepc-laptop.c | 186 ++++++++++------------------------- 2 files changed, 52 insertions(+), 135 deletions(-)
Yes, that fixes it.
Thanks
Alan
Quoted 23 lines · Alan Jenkins
Quoted 13 lines · Dmitry Torokhov
Quoted 2 lines · Alan Jenkins
Thanks! Everything seems to work except for the "brightness up" key :-).
Hmm, indeed, not sure what exactly I was thinking... How about this one?
--
DmitryInput: eeepc-laptop - switch to using sparse keymap library
Quoted 7 lines
Signed-off-by Dmitry Torokhov <[email protected]>---
drivers/platform/x86/Kconfig | 1
drivers/platform/x86/eeepc-laptop.c | 186
++++++++++-------------------------2 files changed, 52 insertions(+), 135 deletions(-)
Quoted 9 lines
Yes, that fixes it.
Tested-by Alan Jenkins <[email protected]>Thanks
Alan
Signature · 6 lines
Corentin Chary http://xf.iksaif.net -- 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
Quoted 35 lines · Corentin Chary
Quoted 23 lines · Alan Jenkins
Quoted 13 lines · Dmitry Torokhov
Quoted 2 lines · Alan Jenkins
Thanks! Everything seems to work except for the "brightness up" key :-).
Hmm, indeed, not sure what exactly I was thinking... How about this one?
--
DmitryInput: eeepc-laptop - switch to using sparse keymap library
Quoted 7 lines
Signed-off-by Dmitry Torokhov <[email protected]>---
drivers/platform/x86/Kconfig | 1
drivers/platform/x86/eeepc-laptop.c | 186
++++++++++-------------------------2 files changed, 52 insertions(+), 135 deletions(-)Quoted 9 lines
Yes, that fixes it.
Tested-by Alan Jenkins <[email protected]>Thanks
Alan
Quoted 6 lines
Acked-by Corentin Chary <[email protected]>--
Corentin Chary
http://xf.iksaif.net
Merged into acpi4asus, will be sent to Len soon (before the end of the week) for inclusion in 2.6.23-rc3 (or 4)
Signature · 6 lines
Corentin Chary http://xf.iksaif.net -- 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