[SCSI] struct device - replace bus_id with dev_name(), dev_set_name()
[jejb: limit ioctl to returning 20 characters to avoid overrun on long device names and add a few more conversions] Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:

committed by
James Bottomley

parent
b58602a4ba
commit
71610f55fa
@@ -2184,7 +2184,7 @@ static void ipr_dump_location_data(struct ipr_ioa_cfg *ioa_cfg,
|
||||
sizeof(struct ipr_dump_entry_header);
|
||||
driver_dump->location_entry.hdr.data_type = IPR_DUMP_DATA_TYPE_ASCII;
|
||||
driver_dump->location_entry.hdr.id = IPR_DUMP_LOCATION_ID;
|
||||
strcpy(driver_dump->location_entry.location, ioa_cfg->pdev->dev.bus_id);
|
||||
strcpy(driver_dump->location_entry.location, dev_name(&ioa_cfg->pdev->dev));
|
||||
driver_dump->hdr.num_entries++;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user