diff options
author | Swen Schillig <swen@vnet.ibm.com> | 2008-10-01 06:42:18 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-10-03 13:11:53 -0400 |
commit | 7ba58c9cc16d296290fe645acb11db2b01276544 (patch) | |
tree | 7dabe15082a18e3b5e449c6dad37f7d20ba95e64 /drivers/s390/scsi/zfcp_aux.c | |
parent | 5ab944f97e09a3d52951fe903eed9a7b88d810b2 (diff) |
[SCSI] zfcp: remove all typedefs and replace them with standards
Remove typedefs from zfcp, use already existing types instead.
Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_aux.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_aux.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c index 181f88bb53b3..811ce8a28250 100644 --- a/drivers/s390/scsi/zfcp_aux.c +++ b/drivers/s390/scsi/zfcp_aux.c | |||
@@ -88,11 +88,13 @@ static int __init zfcp_device_setup(char *devstr) | |||
88 | strncpy(zfcp_data.init_busid, token, BUS_ID_SIZE); | 88 | strncpy(zfcp_data.init_busid, token, BUS_ID_SIZE); |
89 | 89 | ||
90 | token = strsep(&str, ","); | 90 | token = strsep(&str, ","); |
91 | if (!token || strict_strtoull(token, 0, &zfcp_data.init_wwpn)) | 91 | if (!token || strict_strtoull(token, 0, |
92 | (unsigned long long *) &zfcp_data.init_wwpn)) | ||
92 | goto err_out; | 93 | goto err_out; |
93 | 94 | ||
94 | token = strsep(&str, ","); | 95 | token = strsep(&str, ","); |
95 | if (!token || strict_strtoull(token, 0, &zfcp_data.init_fcp_lun)) | 96 | if (!token || strict_strtoull(token, 0, |
97 | (unsigned long long *) &zfcp_data.init_fcp_lun)) | ||
96 | goto err_out; | 98 | goto err_out; |
97 | 99 | ||
98 | kfree(str); | 100 | kfree(str); |
@@ -231,8 +233,7 @@ module_init(zfcp_module_init); | |||
231 | * | 233 | * |
232 | * Returns: pointer to zfcp_unit or NULL | 234 | * Returns: pointer to zfcp_unit or NULL |
233 | */ | 235 | */ |
234 | struct zfcp_unit *zfcp_get_unit_by_lun(struct zfcp_port *port, | 236 | struct zfcp_unit *zfcp_get_unit_by_lun(struct zfcp_port *port, u64 fcp_lun) |
235 | fcp_lun_t fcp_lun) | ||
236 | { | 237 | { |
237 | struct zfcp_unit *unit; | 238 | struct zfcp_unit *unit; |
238 | 239 | ||
@@ -251,7 +252,7 @@ struct zfcp_unit *zfcp_get_unit_by_lun(struct zfcp_port *port, | |||
251 | * Returns: pointer to zfcp_port or NULL | 252 | * Returns: pointer to zfcp_port or NULL |
252 | */ | 253 | */ |
253 | struct zfcp_port *zfcp_get_port_by_wwpn(struct zfcp_adapter *adapter, | 254 | struct zfcp_port *zfcp_get_port_by_wwpn(struct zfcp_adapter *adapter, |
254 | wwn_t wwpn) | 255 | u64 wwpn) |
255 | { | 256 | { |
256 | struct zfcp_port *port; | 257 | struct zfcp_port *port; |
257 | 258 | ||
@@ -276,7 +277,7 @@ static void zfcp_sysfs_unit_release(struct device *dev) | |||
276 | * | 277 | * |
277 | * Sets up some unit internal structures and creates sysfs entry. | 278 | * Sets up some unit internal structures and creates sysfs entry. |
278 | */ | 279 | */ |
279 | struct zfcp_unit *zfcp_unit_enqueue(struct zfcp_port *port, fcp_lun_t fcp_lun) | 280 | struct zfcp_unit *zfcp_unit_enqueue(struct zfcp_port *port, u64 fcp_lun) |
280 | { | 281 | { |
281 | struct zfcp_unit *unit; | 282 | struct zfcp_unit *unit; |
282 | 283 | ||
@@ -290,7 +291,8 @@ struct zfcp_unit *zfcp_unit_enqueue(struct zfcp_port *port, fcp_lun_t fcp_lun) | |||
290 | unit->port = port; | 291 | unit->port = port; |
291 | unit->fcp_lun = fcp_lun; | 292 | unit->fcp_lun = fcp_lun; |
292 | 293 | ||
293 | snprintf(unit->sysfs_device.bus_id, BUS_ID_SIZE, "0x%016llx", fcp_lun); | 294 | snprintf(unit->sysfs_device.bus_id, BUS_ID_SIZE, "0x%016llx", |
295 | (unsigned long long) fcp_lun); | ||
294 | unit->sysfs_device.parent = &port->sysfs_device; | 296 | unit->sysfs_device.parent = &port->sysfs_device; |
295 | unit->sysfs_device.release = zfcp_sysfs_unit_release; | 297 | unit->sysfs_device.release = zfcp_sysfs_unit_release; |
296 | dev_set_drvdata(&unit->sysfs_device, unit); | 298 | dev_set_drvdata(&unit->sysfs_device, unit); |
@@ -620,7 +622,7 @@ static void zfcp_sysfs_port_release(struct device *dev) | |||
620 | * d_id is used to enqueue ports with a well known address like the Directory | 622 | * d_id is used to enqueue ports with a well known address like the Directory |
621 | * Service for nameserver lookup. | 623 | * Service for nameserver lookup. |
622 | */ | 624 | */ |
623 | struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, wwn_t wwpn, | 625 | struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, u64 wwpn, |
624 | u32 status, u32 d_id) | 626 | u32 status, u32 d_id) |
625 | { | 627 | { |
626 | struct zfcp_port *port; | 628 | struct zfcp_port *port; |
@@ -644,7 +646,8 @@ struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, wwn_t wwpn, | |||
644 | atomic_set_mask(status | ZFCP_STATUS_COMMON_REMOVE, &port->status); | 646 | atomic_set_mask(status | ZFCP_STATUS_COMMON_REMOVE, &port->status); |
645 | atomic_set(&port->refcount, 0); | 647 | atomic_set(&port->refcount, 0); |
646 | 648 | ||
647 | snprintf(port->sysfs_device.bus_id, BUS_ID_SIZE, "0x%016llx", wwpn); | 649 | snprintf(port->sysfs_device.bus_id, BUS_ID_SIZE, "0x%016llx", |
650 | (unsigned long long) wwpn); | ||
648 | port->sysfs_device.parent = &adapter->ccw_device->dev; | 651 | port->sysfs_device.parent = &adapter->ccw_device->dev; |
649 | 652 | ||
650 | port->sysfs_device.release = zfcp_sysfs_port_release; | 653 | port->sysfs_device.release = zfcp_sysfs_port_release; |