Skip to content

Commit e9c3911

Browse files
Kevin Barnettmartinkpetersen
authored andcommitted
scsi: smartpqi: Rename pciinfo to pci_info
Make pci device structure names consistent and readable. Reviewed-by: Scott Benesh <scott.benesh@microchip.com> Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com> Signed-off-by: Kevin Barnett <kevin.barnett@microchip.com> Signed-off-by: Don Brace <don.brace@microchip.com> Link: https://lore.kernel.org/r/20230824155812.789913-4-don.brace@microchip.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 43cf3a6 commit e9c3911

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/scsi/smartpqi/smartpqi_init.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6570,21 +6570,21 @@ static int pqi_getpciinfo_ioctl(struct pqi_ctrl_info *ctrl_info, void __user *ar
65706570
struct pci_dev *pci_dev;
65716571
u32 subsystem_vendor;
65726572
u32 subsystem_device;
6573-
cciss_pci_info_struct pciinfo;
6573+
cciss_pci_info_struct pci_info;
65746574

65756575
if (!arg)
65766576
return -EINVAL;
65776577

65786578
pci_dev = ctrl_info->pci_dev;
65796579

6580-
pciinfo.domain = pci_domain_nr(pci_dev->bus);
6581-
pciinfo.bus = pci_dev->bus->number;
6582-
pciinfo.dev_fn = pci_dev->devfn;
6580+
pci_info.domain = pci_domain_nr(pci_dev->bus);
6581+
pci_info.bus = pci_dev->bus->number;
6582+
pci_info.dev_fn = pci_dev->devfn;
65836583
subsystem_vendor = pci_dev->subsystem_vendor;
65846584
subsystem_device = pci_dev->subsystem_device;
6585-
pciinfo.board_id = ((subsystem_device << 16) & 0xffff0000) | subsystem_vendor;
6585+
pci_info.board_id = ((subsystem_device << 16) & 0xffff0000) | subsystem_vendor;
65866586

6587-
if (copy_to_user(arg, &pciinfo, sizeof(pciinfo)))
6587+
if (copy_to_user(arg, &pci_info, sizeof(pci_info)))
65886588
return -EFAULT;
65896589

65906590
return 0;

0 commit comments

Comments
 (0)