summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorZheng Zengkai <zhengzengkai@huawei.com>2023-08-11 13:20:39 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2023-08-16 16:54:47 +0300
commit075a88d5eb2806712c64bed98c30b6890ec30311 (patch)
treedff505c26e0a1a3ca74b5f46b9c3ebfacb91ec59 /scripts
parentcd50430ceb3598957803934068531a274349bcf9 (diff)
downloadlinux-075a88d5eb2806712c64bed98c30b6890ec30311.tar.xz
ocxl: Use pci_dev_id() to simplify the code
PCI core API pci_dev_id() can be used to get the BDF number for a pci device. We don't need to compose it mannually. Use pci_dev_id() to simplify the code a little bit. Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com> Acked-by: Andrew Donnellan <ajd@linux.ibm.com> Acked-by: Frederic Barrat <fbarrat@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230811102039.17257-1-zhengzengkai@huawei.com
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions