summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-macally.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2020-07-27 15:22:00 +0200
committerJiri Kosina <jkosina@suse.cz>2020-08-17 11:38:49 +0200
commitd71c8008e194bf947fe260110c8553ff91469294 (patch)
tree2ae14ce2cc70349d84a181a65cb8c0517fee7f0a /drivers/hid/hid-macally.c
parent857ce8c1c504e25d08724a86df4e64bf6f282323 (diff)
downloadlinux-d71c8008e194bf947fe260110c8553ff91469294.tar.gz
HID: macally: Constify macally_id_table
macally_id_table is not modified and can be made const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-macally.c')
-rw-r--r--drivers/hid/hid-macally.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-macally.c b/drivers/hid/hid-macally.c
index 9a4fc7dffb14..aea46e522008 100644
--- a/drivers/hid/hid-macally.c
+++ b/drivers/hid/hid-macally.c
@@ -29,7 +29,7 @@ static __u8 *macally_report_fixup(struct hid_device *hdev, __u8 *rdesc,
return rdesc;
}
-static struct hid_device_id macally_id_table[] = {
+static const struct hid_device_id macally_id_table[] = {
{ HID_USB_DEVICE(USB_VENDOR_ID_SOLID_YEAR,
USB_DEVICE_ID_MACALLY_IKEY_KEYBOARD) },
{ }