Commit bf526957 authored by Benoit Taine's avatar Benoit Taine Committed by Greg Kroah-Hartman

staging: rts5208: Use pci_device_id rather than DEFINE_PCI_DEVICE_TABLE

This patch enhances kernel style usage for the rts5208 driver.
We should prefer `struct pci_device_id` over `DEFINE_PCI_DEVICE_TABLE` to meet
kernel coding style guidelines. This issue was reported by checkpatch.
Signed-off-by: default avatarBenoit Taine <benoit.taine@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 26e2fa76
...@@ -1030,7 +1030,7 @@ static void rtsx_remove(struct pci_dev *pci) ...@@ -1030,7 +1030,7 @@ static void rtsx_remove(struct pci_dev *pci)
} }
/* PCI IDs */ /* PCI IDs */
static DEFINE_PCI_DEVICE_TABLE(rtsx_ids) = { static const struct pci_device_id rtsx_ids[] = {
{ PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x5208), { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x5208),
PCI_CLASS_OTHERS << 16, 0xFF0000 }, PCI_CLASS_OTHERS << 16, 0xFF0000 },
{ PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x5288), { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x5288),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment