linux/drivers/hid/usbhid
Tomasz Pakuła bdbc38bd12 HID: pidff: Fix set_device_control()
[ Upstream commit e2fa0bdf08 ]

As the search for Device Control report is permissive, make sure the
desired field was actually found, before trying to set it.

Fix bitmask clearing as it was erronously using index instead of
index - 1 (HID arrays index is 1-based).

Add last two missing Device Control usages to the defined array.
PID_PAUSE and PID_CONTINUE.

Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-04-20 10:15:31 +02:00
..
hid-core.c HID: pidff: Move all hid-pidff definitions to a dedicated header 2025-04-20 10:15:29 +02:00
hid-pidff.c HID: pidff: Fix set_device_control() 2025-04-20 10:15:31 +02:00
hid-pidff.h HID: pidff: Move all hid-pidff definitions to a dedicated header 2025-04-20 10:15:29 +02:00
hiddev.c USB: make devnode() callback in usb_class_driver take a const * 2022-10-20 12:11:56 +02:00
Kconfig HID: Kconfig: Fix spelling mistake "Uninterruptable" -> "Uninterruptible" 2021-07-28 11:41:57 +02:00
Makefile HID: core: move the dynamic quirks handling in core 2017-11-21 11:14:48 +01:00
usbhid.h Revert "HID: usbhid: do not sleep when opening device" 2020-08-18 19:54:04 +02:00
usbkbd.c HID: move from strlcpy with unused retval to strscpy 2022-08-25 11:44:27 +02:00
usbmouse.c HID: move from strlcpy with unused retval to strscpy 2022-08-25 11:44:27 +02:00