mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
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>
This commit is contained in:
committed by
Jiri Kosina
parent
857ce8c1c5
commit
d71c8008e1
@@ -29,7 +29,7 @@ static __u8 *macally_report_fixup(struct hid_device *hdev, __u8 *rdesc,
|
|||||||
return 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,
|
{ HID_USB_DEVICE(USB_VENDOR_ID_SOLID_YEAR,
|
||||||
USB_DEVICE_ID_MACALLY_IKEY_KEYBOARD) },
|
USB_DEVICE_ID_MACALLY_IKEY_KEYBOARD) },
|
||||||
{ }
|
{ }
|
||||||
|
|||||||
Reference in New Issue
Block a user