diff options
| author | Thomas Weißschuh <[email protected]> | 2024-08-03 14:34:18 +0200 |
|---|---|---|
| committer | Benjamin Tissoires <[email protected]> | 2024-08-27 16:18:51 +0200 |
| commit | 6737769ca0b6bfc82df53db5fd69068902d608db (patch) | |
| tree | e62f39b6aea071f0b204b6205a7a3f90c52fee7a /include/linux | |
| parent | a707f85d47cad3978bef8fe90c7a79e3998e9d36 (diff) | |
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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Benjamin Tissoires <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/hid.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 1533c9dcd3a6..e7a5d6f2f2eb 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -953,7 +953,7 @@ struct hid_device *hid_allocate_device(void); struct hid_report *hid_register_report(struct hid_device *device, enum hid_report_type type, unsigned int id, unsigned int application); -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); struct hid_report *hid_validate_values(struct hid_device *hid, enum hid_report_type type, unsigned int id, unsigned int field_index, |