diff options
| author | Masahiro Yamada <masahiroy@kernel.org> | 2024-05-17 15:04:58 +0300 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-06-07 22:46:12 +0300 |
| commit | 7d2ebbc33d9f65a492d8a41fd33036e411366341 (patch) | |
| tree | 589b2db647d046f062c25a322c800d73317baa14 /drivers/usb/gadget/udc/cdns2/cdns2-pci.c | |
| parent | 88f2ab39990a3ab8b13c3cb6e276459a1a6c370b (diff) | |
| download | linux-7d2ebbc33d9f65a492d8a41fd33036e411366341.tar.xz | |
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/20240517120458.1260489-1-masahiroy@kernel.org
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/usb/gadget/udc/cdns2/cdns2-pci.c')
| -rw-r--r-- | drivers/usb/gadget/udc/cdns2/cdns2-pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/cdns2/cdns2-pci.c b/drivers/usb/gadget/udc/cdns2/cdns2-pci.c index 1691541c9413..50c3d0974d9b 100644 --- a/drivers/usb/gadget/udc/cdns2/cdns2-pci.c +++ b/drivers/usb/gadget/udc/cdns2/cdns2-pci.c @@ -121,7 +121,7 @@ static const struct pci_device_id cdns2_pci_ids[] = { static struct pci_driver cdns2_pci_driver = { .name = "cdns2-pci", - .id_table = &cdns2_pci_ids[0], + .id_table = cdns2_pci_ids, .probe = cdns2_pci_probe, .remove = cdns2_pci_remove, .driver = { |
