diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-08-03 14:34:20 +0200 |
---|---|---|
committer | Benjamin Tissoires <bentiss@kernel.org> | 2024-08-27 16:18:51 +0200 |
commit | 80cfb508f3fe4c7c6a567fc4aa863c9a38709cd5 (patch) | |
tree | ecd055cb977d58734a02374230052abf4e39ba39 /drivers/hid/hid-nti.c | |
parent | 24ddd0d7de7aaf50f537fd727f31616cb5a65a9e (diff) |
HID: constify params and return value of fetch_item()
fetch_item() does not modify the descriptor it operates on.
As a prerequisite for the constification of hid_driver::dev_rdesc,
mark the parameters and return value of fetch_item() as const.
Also adapt the variable types in the callers to match this
constification.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20240803-hid-const-fixup-v2-4-f53d7a7b29d8@weissschuh.net
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'drivers/hid/hid-nti.c')
0 files changed, 0 insertions, 0 deletions