diff options
author | fengqi <fengqi@xiaomi.com> | 2023-02-16 16:48:30 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2023-03-10 15:21:11 +0100 |
commit | 740b2f03f80e8f50c3f96309bc123bea040de8d0 (patch) | |
tree | 4994ea2bd0c0cc921622e971ad6823086b8c9d9e /include | |
parent | 2653e3fe33f411227296552b2e5f9c2640924900 (diff) | |
download | linux-stable-740b2f03f80e8f50c3f96309bc123bea040de8d0.tar.gz linux-stable-740b2f03f80e8f50c3f96309bc123bea040de8d0.tar.bz2 linux-stable-740b2f03f80e8f50c3f96309bc123bea040de8d0.zip |
HID: add KEY_CAMERA_FOCUS event in HID
Our HID device need KEY_CAMERA_FOCUS event to control camera,
but this event is non-existent in current HID driver.
So we add this event in hid-input.c.
Signed-off-by: fengqi <fengqi@xiaomi.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/hid.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 1ea8c7a3570b..bff9f459db36 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -156,6 +156,7 @@ struct hid_item { #define HID_UP_DIGITIZER 0x000d0000 #define HID_UP_PID 0x000f0000 #define HID_UP_BATTERY 0x00850000 +#define HID_UP_CAMERA 0x00900000 #define HID_UP_HPVENDOR 0xff7f0000 #define HID_UP_HPVENDOR2 0xff010000 #define HID_UP_MSVENDOR 0xff000000 |