Skip to content

Commit d38213a

Browse files
t-8chbentiss
authored andcommitted
HID: hyperv: Constify lowlevel HID driver
Since commit 52d2253 ("HID: Make lowlevel driver structs const") the lowlevel HID drivers are only exposed as const. Take advantage of this to constify the underlying structure, too. Signed-off-by: Thomas Weißschuh <[email protected]> Acked-by: Wei Liu <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent 65b7015 commit d38213a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-hyperv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ static int mousevsc_hid_raw_request(struct hid_device *hid,
424424
return 0;
425425
}
426426

427-
static struct hid_ll_driver mousevsc_ll_driver = {
427+
static const struct hid_ll_driver mousevsc_ll_driver = {
428428
.parse = mousevsc_hid_parse,
429429
.open = mousevsc_hid_open,
430430
.close = mousevsc_hid_close,

0 commit comments

Comments
 (0)