]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: core: store the unique system identifier in hid_device
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 2 Sep 2022 13:29:23 +0000 (15:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Dec 2023 06:31:21 +0000 (07:31 +0100)
commit52badc06b119da3c559a4b835334cc70d4561b4b
tree59e8e49bac644fd51c216d2c0b018d1340319de9
parent221be624a55de2eb770c04d2fb7ca9a670e0c6ed
HID: core: store the unique system identifier in hid_device

[ Upstream commit 1e839143d674603b0bbbc4c513bca35404967dbc ]

This unique identifier is currently used only for ensuring uniqueness in
sysfs. However, this could be handful for userspace to refer to a specific
hid_device by this id.

2 use cases are in my mind: LEDs (and their naming convention), and
HID-BPF.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20220902132938.2409206-9-benjamin.tissoires@redhat.com
Stable-dep-of: fc43e9c857b7 ("HID: fix HID device resource race between HID core and debugging support")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-core.c
include/linux/hid.h