HID: add mapping for camera access keys
authorEray Orçunus <erayorcunus@gmail.com>
Wed, 23 Nov 2022 01:46:55 +0000 (17:46 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 23 Nov 2022 01:50:36 +0000 (17:50 -0800)
commit9f4211bf7f811b653aa6acfb9aea38222436a458
tree1b13c9899ffea4e6da2d817f637f11ade06f44ea
parent5f964b02468599696bfa7ea7f1eab140a224127a
HID: add mapping for camera access keys

HUTRR72 added 3 new usage codes for keys that are supposed to enable,
disable and toggle camera access. These are useful, considering many
laptops today have key(s) for toggling access to camera.

This patch adds new key definitions for KEY_CAMERA_ACCESS_ENABLE,
KEY_CAMERA_ACCESS_DISABLE and KEY_CAMERA_ACCESS_TOGGLE. Additionally
hid-debug is adjusted to recognize this new usage codes as well.

Signed-off-by: Eray Orçunus <erayorcunus@gmail.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Link: https://lore.kernel.org/r/20221029120311.11152-3-erayorcunus@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/hid/hid-debug.c
drivers/hid/hid-input.c
include/uapi/linux/input-event-codes.h