linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] PCI: Prefer of_device_get_match_data() over of_match_device()
@ 2021-11-23 15:37 Fan Fei
  2021-11-23 15:37 ` [PATCH 1/7] PCI: altera: " Fan Fei
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Fan Fei @ 2021-11-23 15:37 UTC (permalink / raw)
  To: bjorn; +Cc: Fan Fei, linux-pci

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(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-12-08 21:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-23 15:37 [PATCH 0/7] PCI: Prefer of_device_get_match_data() over of_match_device() Fan Fei
2021-11-23 15:37 ` [PATCH 1/7] PCI: altera: " Fan Fei
2021-11-23 15:37 ` [PATCH 2/7] PCI: cadence: " Fan Fei
2021-11-23 15:37 ` [PATCH 3/7] PCI: kirin: " Fan Fei
2021-11-23 15:37 ` [PATCH 4/7] PCI: dra7xx: " Fan Fei
2021-11-23 15:38 ` [PATCH 5/7] PCI: keystone: " Fan Fei
2021-11-23 15:38 ` [PATCH 6/7] PCI: artpec6: " Fan Fei
2021-11-23 15:38 ` [PATCH 7/7] PCI: dwc: Prefer of_device_get_match_data() over of_device_device() Fan Fei
2021-12-08 20:50 ` [PATCH 0/7] PCI: Prefer of_device_get_match_data() over of_match_device() Bjorn Helgaas
2021-12-08 21:21   ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).