mbox series

[0/3] scsi: Use pci_dev_id() to simplify the code

Message ID 20230815025419.3523236-1-zhangjialin11@huawei.com (mailing list archive)
Headers show
Series scsi: Use pci_dev_id() to simplify the code | expand

Message

Jialin Zhang Aug. 15, 2023, 2:54 a.m. UTC
PCI core API pci_dev_id() can be used to get the BDF number for a pci
device. Use the API to simplify the code.

Jialin Zhang (3):
  scsi: mvumi: Use pci_dev_id() to simplify the code
  scsi: megaraid_sas: Use pci_dev_id() to simplify the code
  scsi: megaraid: Use pci_dev_id() to simplify the code

 drivers/scsi/megaraid/megaraid_mbox.c     | 2 +-
 drivers/scsi/megaraid/megaraid_sas_base.c | 2 +-
 drivers/scsi/mvumi.c                      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Comments

Martin K. Petersen Aug. 21, 2023, 8:48 p.m. UTC | #1
Jialin,

> PCI core API pci_dev_id() can be used to get the BDF number for a pci
> device. Use the API to simplify the code.

Applied to 6.6/scsi-staging, thanks!
Martin K. Petersen Aug. 25, 2023, 1:13 a.m. UTC | #2
On Tue, 15 Aug 2023 10:54:16 +0800, Jialin Zhang wrote:

> PCI core API pci_dev_id() can be used to get the BDF number for a pci
> device. Use the API to simplify the code.
> 
> Jialin Zhang (3):
>   scsi: mvumi: Use pci_dev_id() to simplify the code
>   scsi: megaraid_sas: Use pci_dev_id() to simplify the code
>   scsi: megaraid: Use pci_dev_id() to simplify the code
> 
> [...]

Applied to 6.6/scsi-queue, thanks!

[1/3] scsi: mvumi: Use pci_dev_id() to simplify the code
      https://git.kernel.org/mkp/scsi/c/48e590218d1b
[2/3] scsi: megaraid_sas: Use pci_dev_id() to simplify the code
      https://git.kernel.org/mkp/scsi/c/a46421fdf7e9
[3/3] scsi: megaraid: Use pci_dev_id() to simplify the code
      https://git.kernel.org/mkp/scsi/c/bb1459cb84da