projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
857ce8c
)
HID: macally: Constify macally_id_table
author
Rikard Falkeborn
<rikard.falkeborn@gmail.com>
Mon, 27 Jul 2020 13:22:00 +0000
(15:22 +0200)
committer
Jiri Kosina
<jkosina@suse.cz>
Mon, 17 Aug 2020 09:38:49 +0000
(11:38 +0200)
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>
drivers/hid/hid-macally.c
patch
|
blob
|
history
diff --git
a/drivers/hid/hid-macally.c
b/drivers/hid/hid-macally.c
index 9a4fc7dffb14d551689b0b5e7ea5eefcfeaa4625..aea46e5220082acae14b78097bb27d4a13b84f65 100644
(file)
--- a/
drivers/hid/hid-macally.c
+++ b/
drivers/hid/hid-macally.c
@@
-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) },
{ }