History

Input: add `SW_MACHINE_COVER`

This event code represents the state of a removable cover of a device. Value 0 means that the cover is open or removed, value 1 means that the cover is closed.

Merlijn Wajer committed 6 years ago

Commit c463bb21 parent 751ad342 files · +3 −2Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/input-event-codes.h+2−1
@@ -888,7 +888,8 @@ · 887 unmodified lines
888888 #define SW_LINEIN_INSERT 0x0d /* set = inserted */
889889 #define SW_MUTE_DEVICE 0x0e /* set = device disabled */
890890 #define SW_PEN_INSERTED 0x0f /* set = pen inserted */
891−#define SW_MAX 0x0f
891+#define SW_MACHINE_COVER 0x10 /* set = cover closed */
892+#define SW_MAX 0x10
892893 #define SW_CNT (SW_MAX+1)
893894
894895 /*