Skip to content

PCI: Prefer of_device_get_match_data() over of_match_device()

Fan Fei linux-kernel-mentees linux-pci 1 version Applied

Status from this message: Applied to pci/driver-cleanup for v5.17, thank you, Fan!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7PCI: altera: Prefer of_device_get_match_data() over of_match_device()drivers/pci/controller/pcie-altera.c+4 -40 replies
2/7PCI: cadence: Prefer of_device_get_match_data() over of_match_device()drivers/pci/controller/cadence/pcie-cadence-plat.c+2 -40 replies
3/7PCI: kirin: Prefer of_device_get_match_data() over of_match_device()drivers/pci/controller/dwc/pcie-kirin.c+2 -40 replies
4/7PCI: dra7xx: Prefer of_device_get_match_data() over of_match_device()drivers/pci/controller/dwc/pci-dra7xx.c+2 -40 replies
5/7PCI: keystone: Prefer of_device_get_match_data() over of_match_device()drivers/pci/controller/dwc/pci-keystone.c+1 -30 replies
6/7PCI: artpec6: Prefer of_device_get_match_data() over of_match_device()drivers/pci/controller/dwc/pcie-artpec6.c+2 -40 replies
7/7PCI: dwc: Prefer of_device_get_match_data() over of_device_device()drivers/pci/controller/dwc/pcie-designware-plat.c+2 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] PCI: Prefer of_device_get_match_data() over of_match_device()

Some drivers use of_match_device() in probe(), which returns a "struct of_device_id *". They need only the of_device_id.data member, so replace of_device_get_match_data() with of_match_device().

Fan Fei (7):
PCI: altera: Prefer of_device_get_match_data() over of_match_device()
PCI: cadence: Prefer of_device_get_match_data() over of_match_device()
PCI: kirin: Prefer of_device_get_match_data() over of_match_device()
PCI: dra7xx: Prefer of_device_get_match_data() over of_match_device()
PCI: keystone: Prefer of_device_get_match_data() over
of_match_device()
PCI: artpec6: Prefer of_device_get_match_data() over of_match_device()
PCI: dwc: Prefer of_device_get_match_data() over of_device_device()

 drivers/pci/controller/cadence/pcie-cadence-plat.c | 6 ++----
 drivers/pci/controller/dwc/pci-dra7xx.c            | 6 ++----
 drivers/pci/controller/dwc/pci-keystone.c          | 4 +---
 drivers/pci/controller/dwc/pcie-artpec6.c          | 6 ++----
 drivers/pci/controller/dwc/pcie-designware-plat.c  | 6 ++----
 drivers/pci/controller/dwc/pcie-kirin.c            | 6 ++----
 drivers/pci/controller/pcie-altera.c               | 8 ++++----
 7 files changed, 15 insertions(+), 27 deletions(-)
Signature · 1 line
2.25.1