PCI: apple: Use pci_dev_id() to simplify the code
authorXiongfeng Wang <wangxiongfeng2@huawei.com>
Mon, 7 Aug 2023 13:48:56 +0000 (21:48 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 7 Aug 2023 21:13:06 +0000 (16:13 -0500)
commitd332642a9821bfab4c0ddf1173e3af40127f0157
tree10024113da1239f328b7efe1c24c51d9897945ab
parente3a3a097eaebaf234a482b4d2f9f18fe989208c1
PCI: apple: Use pci_dev_id() to simplify the code

When we have a struct pci_dev *, use pci_dev_id() instead of manually
composing the ID with PCI_DEVID() from dev->bus->number and dev->devfn.

[bhelgaas: commit log]
Link: https://lore.kernel.org/r/20230807134858.116051-2-wangxiongfeng2@huawei.com
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/pcie-apple.c