summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2006-05-29 23:31:03 -0400
committerDmitry Torokhov <dtor_core@ameritech.net>2006-05-29 23:31:03 -0400
commited8f9e2f047de5d9b791e390269f230a101a6a4b (patch)
tree8bca1bcd3159bf35c57cefe8efc76f24039de186 /include
parentd2f4012f15845761bd3c6f90172e53767c11e359 (diff)
Input: change from numbered to named switches
Remove the numbered SW_* entries from the input system and assign names to the existing users. Signed-off-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include')
-rw-r--r--include/linux/input.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index 14036ee0749b..ce1a756c4c30 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -579,14 +579,9 @@ struct input_absinfo {
* Switch events
*/
-#define SW_0 0x00
-#define SW_1 0x01
-#define SW_2 0x02
-#define SW_3 0x03
-#define SW_4 0x04
-#define SW_5 0x05
-#define SW_6 0x06
-#define SW_7 0x07
+#define SW_LID 0x00 /* set = lid shut */
+#define SW_TABLET_MODE 0x01 /* set = tablet mode */
+#define SW_HEADPHONE_INSERT 0x02 /* set = inserted */
#define SW_MAX 0x0f
/*