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

platform/x86: asus-tf103c-dock: 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>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230130-hid-const-ll-driver-v1-7-3fc282b3b1d0@weissschuh.net
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>

authored by

Thomas Weißschuh and committed by
Benjamin Tissoires
63509b14 dd350afc

+1 -1
+1 -1
drivers/platform/x86/asus-tf103c-dock.c
··· 250 250 return 0; 251 251 } 252 252 253 - static struct hid_ll_driver tf103c_dock_hid_ll_driver = { 253 + static const struct hid_ll_driver tf103c_dock_hid_ll_driver = { 254 254 .parse = tf103c_dock_hid_parse, 255 255 .start = tf103c_dock_hid_start, 256 256 .stop = tf103c_dock_hid_stop,