Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: greybus: hid: Constify lowlevel HID driver

Since commit 52d225346904 ("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 <linux@weissschuh.net>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230130-hid-const-ll-driver-v1-9-3fc282b3b1d0@weissschuh.net
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>

authored by

Thomas Weißschuh and committed by
Benjamin Tissoires
ff17bb87 783c3394

+1 -1
+1 -1
drivers/staging/greybus/hid.c
··· 381 381 } 382 382 383 383 /* HID structure to pass callbacks */ 384 - static struct hid_ll_driver gb_hid_ll_driver = { 384 + static const struct hid_ll_driver gb_hid_ll_driver = { 385 385 .parse = gb_hid_parse, 386 386 .start = gb_hid_start, 387 387 .stop = gb_hid_stop,