diff options
| author | Masahiro Yamada <[email protected]> | 2024-05-17 12:04:58 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2024-06-07 19:46:12 +0000 |
| commit | 7d2ebbc33d9f65a492d8a41fd33036e411366341 (patch) | |
| tree | 589b2db647d046f062c25a322c800d73317baa14 /drivers/usb/cdns3/cdnsp-pci.c | |
| parent | ACPI: PCI: Remove unused struct 'acpi_handle_node' (diff) | |
| download | kernel-7d2ebbc33d9f65a492d8a41fd33036e411366341.tar.gz kernel-7d2ebbc33d9f65a492d8a41fd33036e411366341.zip | |
PCI: Use array for .id_table consistently
While 'x' and '&x[0]' are equivalent, most of the PCI drivers use the
former form for the .id_table.
Update some drivers and documentation for consistency.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Masahiro Yamada <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdnsp-pci.c')
| -rw-r--r-- | drivers/usb/cdns3/cdnsp-pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/cdns3/cdnsp-pci.c b/drivers/usb/cdns3/cdnsp-pci.c index 0725668ffea4..225540fc81ba 100644 --- a/drivers/usb/cdns3/cdnsp-pci.c +++ b/drivers/usb/cdns3/cdnsp-pci.c @@ -231,7 +231,7 @@ static const struct pci_device_id cdnsp_pci_ids[] = { static struct pci_driver cdnsp_pci_driver = { .name = "cdnsp-pci", - .id_table = &cdnsp_pci_ids[0], + .id_table = cdnsp_pci_ids, .probe = cdnsp_pci_probe, .remove = cdnsp_pci_remove, .driver = { |
