HID: cougar: Constify cougar_id_table
cougar_id_table[] is not changed 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:
parent
b7b8e3689a
commit
857ce8c1c5
|
@ -321,7 +321,7 @@ static const struct kernel_param_ops cougar_g6_is_space_ops = {
|
|||
};
|
||||
module_param_cb(g6_is_space, &cougar_g6_is_space_ops, &g6_is_space, 0644);
|
||||
|
||||
static struct hid_device_id cougar_id_table[] = {
|
||||
static const struct hid_device_id cougar_id_table[] = {
|
||||
{ HID_USB_DEVICE(USB_VENDOR_ID_SOLID_YEAR,
|
||||
USB_DEVICE_ID_COUGAR_500K_GAMING_KEYBOARD) },
|
||||
{ HID_USB_DEVICE(USB_VENDOR_ID_SOLID_YEAR,
|
||||
|
|
Loading…
Reference in New Issue