summaryrefslogtreecommitdiffstats
path: root/drivers/hid/uhid.c
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2022-12-22 06:10:51 +0100
committerJiri Kosina <jkosina@suse.cz>2023-01-17 13:44:02 +0100
commit52d22534690446d1f4b45436b570f77df3e855ba (patch)
tree6a999df8da7dc0009f58f0da67bbd3ece4e6caa0 /drivers/hid/uhid.c
parentHID: Unexport struct i2c_hid_ll_driver (diff)
downloadlinux-52d22534690446d1f4b45436b570f77df3e855ba.tar.xz
linux-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/uhid.c')
-rw-r--r--drivers/hid/uhid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/uhid.c b/drivers/hid/uhid.c
index 6cec0614fc98..f161c95a1ad2 100644
--- a/drivers/hid/uhid.c
+++ b/drivers/hid/uhid.c
@@ -387,7 +387,7 @@ static int uhid_hid_output_report(struct hid_device *hid, __u8 *buf,
return uhid_hid_output_raw(hid, buf, count, HID_OUTPUT_REPORT);
}
-static struct hid_ll_driver uhid_hid_driver = {
+static const struct hid_ll_driver uhid_hid_driver = {
.start = uhid_hid_start,
.stop = uhid_hid_stop,
.open = uhid_hid_open,