diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-08-03 14:34:18 +0200 |
---|---|---|
committer | Benjamin Tissoires <bentiss@kernel.org> | 2024-08-27 16:18:51 +0200 |
commit | 6737769ca0b6bfc82df53db5fd69068902d608db (patch) | |
tree | e62f39b6aea071f0b204b6205a7a3f90c52fee7a /drivers/hid/hid-core.c | |
parent | a707f85d47cad3978bef8fe90c7a79e3998e9d36 (diff) | |
download | lwn-6737769ca0b6bfc82df53db5fd69068902d608db.tar.gz lwn-6737769ca0b6bfc82df53db5fd69068902d608db.zip |
HID: constify parameter rdesc of hid_parse_report()
The parameter is never modified, so mark it as const.
This is a prerequisite for constification changes in the HID core.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20240803-hid-const-fixup-v2-2-f53d7a7b29d8@weissschuh.net
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'drivers/hid/hid-core.c')
-rw-r--r-- | drivers/hid/hid-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 988d0acbdf04..0d2cbe491708 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -946,7 +946,7 @@ static int hid_scan_report(struct hid_device *hid) * Allocate the device report as read by the bus driver. This function should * only be called from parse() in ll drivers. */ -int hid_parse_report(struct hid_device *hid, __u8 *start, unsigned size) +int hid_parse_report(struct hid_device *hid, const __u8 *start, unsigned size) { hid->dev_rdesc = kmemdup(start, size, GFP_KERNEL); if (!hid->dev_rdesc) |