Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: ns558 - make pnp device ids constant

The id_table field of the struct pnp_driver is constant in <linux/pnp.h>
so it makes sense to mark pnp_devids also constant.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Márton Németh and committed by
Dmitry Torokhov
35c4b918 a9844b18

+1 -1
+1 -1
drivers/input/gameport/ns558.c
··· 166 166 167 167 #ifdef CONFIG_PNP 168 168 169 - static struct pnp_device_id pnp_devids[] = { 169 + static const struct pnp_device_id pnp_devids[] = { 170 170 { .id = "@P@0001", .driver_data = 0 }, /* ALS 100 */ 171 171 { .id = "@P@0020", .driver_data = 0 }, /* ALS 200 */ 172 172 { .id = "@P@1001", .driver_data = 0 }, /* ALS 100+ */