This patch added a new switch event, SW_ROTATE_LOCK, besides buttons.
Signed-off-by: Jekyll Lai <[email protected]>
---
arch/x86/platform/mrst/mrst.c | 2 ++
include/linux/input.h | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/x86/platform/mrst/mrst.c b/arch/x86/platform/mrst/mrst.c
index bbf6fdc..53b7c76 100644
--- a/arch/x86/platform/mrst/mrst.c
+++ b/arch/x86/platform/mrst/mrst.c
@@ -1084,6 +1084,8 @@ static struct gpio_keys_button gpio_button[] = {
{KEY_CAMERA_FOCUS, -1, 1, "camera_half", EV_KEY, 0, 20},
{SW_KEYPAD_SLIDE, -1, 1, "MagSw1", EV_SW, 0, 20},
{SW_KEYPAD_SLIDE, -1, 1, "MagSw2", EV_SW, 0, 20},
+ {KEY_HOMEPAGE, -1, 1, "home_btn", EV_KEY, 0, 20},
+ {SW_ROTATE_LOCK, -1, 1, "rot_lock", EV_SW, 0, 20},
};
static struct gpio_keys_platform_data mrst_gpio_keys = {
diff --git a/include/linux/input.h b/include/linux/input.h
index 9777668..2f116b2 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -786,6 +786,7 @@ struct input_keymap_entry {
#define SW_CAMERA_LENS_COVER 0x09 /* set = lens covered */
#define SW_KEYPAD_SLIDE 0x0a /* set = keypad slide out */
#define SW_FRONT_PROXIMITY 0x0b /* set = front proximity sensor active */
+#define SW_ROTATE_LOCK 0x0c /* set = rotate lock */
#define SW_MAX 0x0f
#define SW_CNT (SW_MAX+1)
--
1.7.0.4
_______________________________________________
MeeGo-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel