Skip to content

Commit a9844b1

Browse files
nmarci1dtor
authored andcommitted
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>
1 parent ef9a16f commit a9844b1

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/input/gameport/emu10k1-gp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct emu {
4646
int size;
4747
};
4848

49-
static struct pci_device_id emu_tbl[] = {
49+
static const struct pci_device_id emu_tbl[] = {
5050

5151
{ 0x1102, 0x7002, PCI_ANY_ID, PCI_ANY_ID }, /* SB Live gameport */
5252
{ 0x1102, 0x7003, PCI_ANY_ID, PCI_ANY_ID }, /* Audigy gameport */

‎drivers/input/gameport/fm801-gp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static void __devexit fm801_gp_remove(struct pci_dev *pci)
140140
}
141141
}
142142

143-
static struct pci_device_id fm801_gp_id_table[] = {
143+
static const struct pci_device_id fm801_gp_id_table[] = {
144144
{ PCI_VENDOR_ID_FORTEMEDIA, PCI_DEVICE_ID_FM801_GP, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
145145
{ 0 }
146146
};

‎drivers/input/serio/pcips2.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static void __devexit pcips2_remove(struct pci_dev *dev)
186186
pci_disable_device(dev);
187187
}
188188

189-
static struct pci_device_id pcips2_ids[] = {
189+
static const struct pci_device_id pcips2_ids[] = {
190190
{
191191
.vendor = 0x14f2, /* MOBILITY */
192192
.device = 0x0123, /* Keyboard */

0 commit comments

Comments
 (0)