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

Input: make PCI device ids constant

The id_table field of the struct pci_driver is constant in <linux/pci.h>
so it makes sense to mark initialization data 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
a9844b18 ef9a16f1

+3 -3
+1 -1
drivers/input/gameport/emu10k1-gp.c
··· 46 46 int size; 47 47 }; 48 48 49 - static struct pci_device_id emu_tbl[] = { 49 + static const struct pci_device_id emu_tbl[] = { 50 50 51 51 { 0x1102, 0x7002, PCI_ANY_ID, PCI_ANY_ID }, /* SB Live gameport */ 52 52 { 0x1102, 0x7003, PCI_ANY_ID, PCI_ANY_ID }, /* Audigy gameport */
+1 -1
drivers/input/gameport/fm801-gp.c
··· 140 140 } 141 141 } 142 142 143 - static struct pci_device_id fm801_gp_id_table[] = { 143 + static const struct pci_device_id fm801_gp_id_table[] = { 144 144 { PCI_VENDOR_ID_FORTEMEDIA, PCI_DEVICE_ID_FM801_GP, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, 145 145 { 0 } 146 146 };
+1 -1
drivers/input/serio/pcips2.c
··· 186 186 pci_disable_device(dev); 187 187 } 188 188 189 - static struct pci_device_id pcips2_ids[] = { 189 + static const struct pci_device_id pcips2_ids[] = { 190 190 { 191 191 .vendor = 0x14f2, /* MOBILITY */ 192 192 .device = 0x0123, /* Keyboard */