HID: hid-asus: add const to read-only outgoing usb buffer
authorDenis Benato <benato.denis96@gmail.com>
Fri, 17 Nov 2023 01:15:55 +0000 (14:15 +1300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2023 16:02:00 +0000 (17:02 +0100)
commit5ce0fb87311d17907910e06e0a9b1306da4c62b2
tree3fd348c3548b1207c189fe259e09ffe60dc98abf
parent610610da58af14a2da813c550264616e99a1a756
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>
drivers/hid/hid-asus.c