]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
Input: add SW_ROTATE_LOCK switch type
authorJekyll Lai <jekyll.lai@gmail.com>
Wed, 12 Jan 2011 05:53:55 +0000 (21:53 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 12 Jan 2011 05:59:54 +0000 (21:59 -0800)
This switch is used to signal that user want to disable screen
transitions from portrait to landscape mode and back.

Signed-off-by: Jekyll Lai <jekyll_lai@wistron.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
include/linux/input.h

index 6c407e553a404c9a5867985b344a07c9c25d955a..4bdacada8d2a5723c42e96029f869718be007404 100644 (file)
@@ -775,6 +775,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 locked/disabled */
 #define SW_MAX                 0x0f
 #define SW_CNT                 (SW_MAX+1)