diff options
author | Zheng Zengkai <zhengzengkai@huawei.com> | 2023-08-11 19:10:57 +0800 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2023-08-14 12:05:05 -0500 |
commit | 0e8207f54cf5902367080a0e648d3adae6c019a1 (patch) | |
tree | 69b06b4e579d7a6f2b5bb139dd46f7e5b02c67d9 /drivers/pci/hotplug/ibmphp.h | |
parent | 6f7dc3076717d48980d8214eee083ee401fbe66d (diff) |
PCI/P2PDMA: 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 from dev->bus->number and dev->devfn.
[bhelgaas: commit log]
Link: https://lore.kernel.org/r/20230811111057.31900-1-zhengzengkai@huawei.com
Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Diffstat (limited to 'drivers/pci/hotplug/ibmphp.h')
0 files changed, 0 insertions, 0 deletions