diff options
author | Merlijn Wajer <merlijn@wizzup.org> | 2020-06-30 11:47:04 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2020-06-30 12:06:49 -0700 |
commit | c463bb2a8f8d7d97aa414bf7714fc77e9d3b10df (patch) | |
tree | 24cb7c58a23a3856a50bf4db1ad26c8fda119e06 /include/uapi | |
parent | 751ad34fbad74c3ed4a9ede24764b4253d4faa84 (diff) | |
download | linux-stable-c463bb2a8f8d7d97aa414bf7714fc77e9d3b10df.tar.gz linux-stable-c463bb2a8f8d7d97aa414bf7714fc77e9d3b10df.tar.bz2 linux-stable-c463bb2a8f8d7d97aa414bf7714fc77e9d3b10df.zip |
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.
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Merlijn Wajer <merlijn@wizzup.org>
Link: https://lore.kernel.org/r/20200612125402.18393-2-merlijn@wizzup.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/input-event-codes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h index b6a835d37826..0c2e27d28e0a 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -888,7 +888,8 @@ #define SW_LINEIN_INSERT 0x0d /* set = inserted */ #define SW_MUTE_DEVICE 0x0e /* set = device disabled */ #define SW_PEN_INSERTED 0x0f /* set = pen inserted */ -#define SW_MAX 0x0f +#define SW_MACHINE_COVER 0x10 /* set = cover closed */ +#define SW_MAX 0x10 #define SW_CNT (SW_MAX+1) /* |