Skip to content

Commit 2c9c4ae

Browse files
ArvindYadavCsgregkh
authored andcommitted
applicom: constify pci_device_id.
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by <linux/pci.h> work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 5cb95fa commit 2c9c4ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/char/applicom.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static char *applicom_pci_devnames[] = {
6767
"PCI2000PFB"
6868
};
6969

70-
static struct pci_device_id applicom_pci_tbl[] = {
70+
static const struct pci_device_id applicom_pci_tbl[] = {
7171
{ PCI_VDEVICE(APPLICOM, PCI_DEVICE_ID_APPLICOM_PCIGENERIC) },
7272
{ PCI_VDEVICE(APPLICOM, PCI_DEVICE_ID_APPLICOM_PCI2000IBS_CAN) },
7373
{ PCI_VDEVICE(APPLICOM, PCI_DEVICE_ID_APPLICOM_PCI2000PFB) },

0 commit comments

Comments
 (0)