Skip to contentSkip to conversation

eeepc-laptop - switch to using sparse keymap library

PATCH Applied Dmitry Torokhov 3 participants 6 messages Dec 18, 2009 – Jan 3, 2010

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

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
index 6eebd09..4ecbfb4 100644
@@ -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
#1 lore raw
Quoted 7 lines · Dmitry Torokhov

Switch the driver to use sparse keymap library instead of using custom implementation of keymap handling.

---

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

#2 lore raw
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.

---

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
index fc5bf9d..fb5ee8f 100644
@@ -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

Tested-by
#3 lore raw
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?

--
Dmitry

Input: eeepc-laptop - switch to using sparse keymap library

Quoted 7 lines

---

 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

maintainer Acked-by
#4 lore raw
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?

--
Dmitry

Input: eeepc-laptop - switch to using sparse keymap library

Quoted 7 lines

---

 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.

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
maintainer Applied
#5 lore raw
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?

--
Dmitry

Input: eeepc-laptop - switch to using sparse keymap library

Quoted 7 lines

---

 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.

Thanks
Alan

Quoted 6 lines

--
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