]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
PCI/portdrv: Use conventional Device ID table formatting
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 15 Feb 2019 19:49:18 +0000 (13:49 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 15 Feb 2019 19:49:18 +0000 (13:49 -0600)
The pci_device_id table was technically correct, but unusually formatted,
which made adding entries error-prone.  Change the format so it's obvious
how to add entries.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/portdrv_pci.c

index 0acca3596807afbbcd392fc1537a9dd2048704dc..a289e734b9a43519ac06a70610e4b062860a319c 100644 (file)
@@ -182,10 +182,10 @@ static void pcie_portdrv_err_resume(struct pci_dev *dev)
 /*
  * LINUX Device Driver Model
  */
-static const struct pci_device_id port_pci_ids[] = { {
+static const struct pci_device_id port_pci_ids[] = {
        /* handle any PCI-Express port */
-       PCI_DEVICE_CLASS(((PCI_CLASS_BRIDGE_PCI << 8) | 0x00), ~0),
-       }, { /* end: all zeroes */ }
+       { PCI_DEVICE_CLASS(((PCI_CLASS_BRIDGE_PCI << 8) | 0x00), ~0) },
+       { },
 };
 
 static const struct pci_error_handlers pcie_portdrv_err_handler = {