Re: [PATCH] hwtracing: hisi_ptt: Use pci_dev_id() to simplify the code

From: Yang Yingliang
Date: Tue Aug 08 2023 - 12:35:20 EST



On 2023/8/8 11:08, Xiongfeng Wang wrote:
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@xxxxxxxxxx>
Reviewed-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>