diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-12-03 16:41:36 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-01-02 11:22:16 -0500 |
commit | 71610f55fa4db63dbf5385929a47c9fb2451f332 (patch) | |
tree | b816672eef25e1436111e6c78053612bd22fb016 /drivers/scsi/ibmvscsi | |
parent | b58602a4bac012b5f4fc12fe6b46ab237b610d5d (diff) |
[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>
Diffstat (limited to 'drivers/scsi/ibmvscsi')
-rw-r--r-- | drivers/scsi/ibmvscsi/ibmvfc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c index 44f202f33101..253414e190a7 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.c +++ b/drivers/scsi/ibmvscsi/ibmvfc.c | |||
@@ -1145,10 +1145,10 @@ static void ibmvfc_set_login_info(struct ibmvfc_host *vhost) | |||
1145 | login_info->async.len = vhost->async_crq.size * sizeof(*vhost->async_crq.msgs); | 1145 | login_info->async.len = vhost->async_crq.size * sizeof(*vhost->async_crq.msgs); |
1146 | strncpy(login_info->partition_name, vhost->partition_name, IBMVFC_MAX_NAME); | 1146 | strncpy(login_info->partition_name, vhost->partition_name, IBMVFC_MAX_NAME); |
1147 | strncpy(login_info->device_name, | 1147 | strncpy(login_info->device_name, |
1148 | vhost->host->shost_gendev.bus_id, IBMVFC_MAX_NAME); | 1148 | dev_name(&vhost->host->shost_gendev), IBMVFC_MAX_NAME); |
1149 | 1149 | ||
1150 | location = of_get_property(of_node, "ibm,loc-code", NULL); | 1150 | location = of_get_property(of_node, "ibm,loc-code", NULL); |
1151 | location = location ? location : vhost->dev->bus_id; | 1151 | location = location ? location : dev_name(vhost->dev); |
1152 | strncpy(login_info->drc_name, location, IBMVFC_MAX_NAME); | 1152 | strncpy(login_info->drc_name, location, IBMVFC_MAX_NAME); |
1153 | } | 1153 | } |
1154 | 1154 | ||