diff options
| author | Denis Benato <benato.denis96@gmail.com> | 2023-11-17 14:15:55 +1300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-12-20 15:38:03 +0100 |
| commit | 9a86637edabcd5b6fd2893bfcca5716c54d8c94b (patch) | |
| tree | 97162818d8bc8d97d21a759836270c179ef419e4 /kernel | |
| parent | f45f5123e0b501ad3ea94f4ae93c18767fc9ed5f (diff) | |
HID: hid-asus: add const to read-only outgoing usb buffer
[ Upstream commit 06ae5afce8cc1f7621cc5c7751e449ce20d68af7 ]
In the function asus_kbd_set_report the parameter buf is read-only
as it gets copied in a memory portion suitable for USB transfer,
but the parameter is not marked as const: add the missing const and mark
const immutable buffers passed to that function.
Signed-off-by: Denis Benato <benato.denis96@gmail.com>
Signed-off-by: Luke D. Jones <luke@ljones.dev>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
