Skip to content

Commit

Permalink
Input: make PCI device ids constant
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
nmarci1 authored and dtor committed Jan 10, 2010
1 parent ef9a16f commit a9844b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/input/gameport/emu10k1-gp.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct emu {
int size;
};

static struct pci_device_id emu_tbl[] = {
static const struct pci_device_id emu_tbl[] = {

{ 0x1102, 0x7002, PCI_ANY_ID, PCI_ANY_ID }, /* SB Live gameport */
{ 0x1102, 0x7003, PCI_ANY_ID, PCI_ANY_ID }, /* Audigy gameport */
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/gameport/fm801-gp.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static void __devexit fm801_gp_remove(struct pci_dev *pci)
}
}

static struct pci_device_id fm801_gp_id_table[] = {
static const struct pci_device_id fm801_gp_id_table[] = {
{ PCI_VENDOR_ID_FORTEMEDIA, PCI_DEVICE_ID_FM801_GP, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
{ 0 }
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/serio/pcips2.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ static void __devexit pcips2_remove(struct pci_dev *dev)
pci_disable_device(dev);
}

static struct pci_device_id pcips2_ids[] = {
static const struct pci_device_id pcips2_ids[] = {
{
.vendor = 0x14f2, /* MOBILITY */
.device = 0x0123, /* Keyboard */
Expand Down

0 comments on commit a9844b1

Please sign in to comment.