Commit d71c8008 authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Jiri Kosina

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: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 857ce8c1
......@@ -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) },
{ }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment