]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: rts5208: Use pci_device_id rather than DEFINE_PCI_DEVICE_TABLE
authorBenoit Taine <benoit.taine@lip6.fr>
Mon, 19 May 2014 16:24:26 +0000 (18:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 17:14:31 +0000 (02:14 +0900)
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: Benoit Taine <benoit.taine@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx.c

index d2d1345fb06c99db45a6087f4030e9dcdea324ee..c0a0e6010372ad7f77390b072bbb0b33de674e86 100644 (file)
@@ -1030,7 +1030,7 @@ static void rtsx_remove(struct pci_dev *pci)
 }
 
 /* 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_CLASS_OTHERS << 16, 0xFF0000 },
        { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x5288),