[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
@@ -212,7 +212,7 @@ struct srp_rport *srp_rport_add(struct Scsi_Host *shost,
|
||||
rport->roles = ids->roles;
|
||||
|
||||
id = atomic_inc_return(&to_srp_host_attrs(shost)->next_port_id);
|
||||
sprintf(rport->dev.bus_id, "port-%d:%d", shost->host_no, id);
|
||||
dev_set_name(&rport->dev, "port-%d:%d", shost->host_no, id);
|
||||
|
||||
transport_setup_device(&rport->dev);
|
||||
|
||||
|
Reference in New Issue
Block a user