Skip to content

Commit d71c800

Browse files
rikardfalkebornJiri Kosina
authored andcommitted
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>
1 parent 857ce8c commit d71c800

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/hid/hid-macally.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static __u8 *macally_report_fixup(struct hid_device *hdev, __u8 *rdesc,
2929
return rdesc;
3030
}
3131

32-
static struct hid_device_id macally_id_table[] = {
32+
static const struct hid_device_id macally_id_table[] = {
3333
{ HID_USB_DEVICE(USB_VENDOR_ID_SOLID_YEAR,
3434
USB_DEVICE_ID_MACALLY_IKEY_KEYBOARD) },
3535
{ }

0 commit comments

Comments
 (0)