Skip to content

Commit

Permalink
HID: macally: Constify macally_id_table
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rikardfalkeborn authored and Jiri Kosina committed Aug 17, 2020
1 parent 857ce8c commit d71c800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-macally.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) },
{ }
Expand Down

0 comments on commit d71c800

Please sign in to comment.