summaryrefslogtreecommitdiffstats
path: root/drivers/hid/usbhid/hid-core.c
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2022-12-22 05:10:51 +0000
committerJiri Kosina <jkosina@suse.cz>2023-01-17 13:44:02 +0100
commit52d22534690446d1f4b45436b570f77df3e855ba (patch)
tree6a999df8da7dc0009f58f0da67bbd3ece4e6caa0 /drivers/hid/usbhid/hid-core.c
parentebb45d6bee4e65329cf1ff322ad1ca3013b3346d (diff)
downloadlinux-stable-52d22534690446d1f4b45436b570f77df3e855ba.tar.gz
linux-stable-52d22534690446d1f4b45436b570f77df3e855ba.tar.bz2
linux-stable-52d22534690446d1f4b45436b570f77df3e855ba.zip
HID: Make lowlevel driver structs const
Nothing is nor should be modifying these structs so mark them as const. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: David Rheinsberg <david.rheinsberg@gmail.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/usbhid/hid-core.c')
-rw-r--r--drivers/hid/usbhid/hid-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c
index 4143bab3380a..257dd73e37bf 100644
--- a/drivers/hid/usbhid/hid-core.c
+++ b/drivers/hid/usbhid/hid-core.c
@@ -1318,7 +1318,7 @@ static bool usbhid_may_wakeup(struct hid_device *hid)
return device_may_wakeup(&dev->dev);
}
-static struct hid_ll_driver usb_hid_driver = {
+static const struct hid_ll_driver usb_hid_driver = {
.parse = usbhid_parse,
.start = usbhid_start,
.stop = usbhid_stop,