hwtracing: hisi_ptt: Use pci_dev_id() to simplify the code
authorXiongfeng Wang <wangxiongfeng2@huawei.com>
Tue, 8 Aug 2023 03:08:35 +0000 (11:08 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 14 Aug 2023 23:45:56 +0000 (00:45 +0100)
commit484281bd5b989a31c1045786e326084652ea49a0
treecc00ae9256c9c8b757bcf59acda2dc21938df636
parent28a03fae6e524d39fec14fea1ee67b86f4870658
hwtracing: hisi_ptt: 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 using PCI_DEVID(). Use
pci_dev_id() to simplify the code a little bit.

Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: Yicong Yang <yangyicong@hisilicon.com>
Reviewed-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230808030835.167538-1-wangxiongfeng2@huawei.com
drivers/hwtracing/ptt/hisi_ptt.c