提交 d71c8008 编写于 作者: R Rikard Falkeborn 提交者: 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: NRikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册