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_sysfs.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_sysfs.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_sysfs.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/drivers/s390/scsi/zfcp_sysfs.c b/drivers/s390/scsi/zfcp_sysfs.c index 430e486e9183..7f7384c02a53 100644 --- a/drivers/s390/scsi/zfcp_sysfs.c +++ b/drivers/s390/scsi/zfcp_sysfs.c | |||
@@ -26,9 +26,9 @@ static ZFCP_DEV_ATTR(_feat, _name, S_IRUGO, \ | |||
26 | ZFCP_DEFINE_ATTR(zfcp_adapter, adapter, status, "0x%08x\n", | 26 | ZFCP_DEFINE_ATTR(zfcp_adapter, adapter, status, "0x%08x\n", |
27 | atomic_read(&adapter->status)); | 27 | atomic_read(&adapter->status)); |
28 | ZFCP_DEFINE_ATTR(zfcp_adapter, adapter, peer_wwnn, "0x%016llx\n", | 28 | ZFCP_DEFINE_ATTR(zfcp_adapter, adapter, peer_wwnn, "0x%016llx\n", |
29 | adapter->peer_wwnn); | 29 | (unsigned long long) adapter->peer_wwnn); |
30 | ZFCP_DEFINE_ATTR(zfcp_adapter, adapter, peer_wwpn, "0x%016llx\n", | 30 | ZFCP_DEFINE_ATTR(zfcp_adapter, adapter, peer_wwpn, "0x%016llx\n", |
31 | adapter->peer_wwpn); | 31 | (unsigned long long) adapter->peer_wwpn); |
32 | ZFCP_DEFINE_ATTR(zfcp_adapter, adapter, peer_d_id, "0x%06x\n", | 32 | ZFCP_DEFINE_ATTR(zfcp_adapter, adapter, peer_d_id, "0x%06x\n", |
33 | adapter->peer_d_id); | 33 | adapter->peer_d_id); |
34 | ZFCP_DEFINE_ATTR(zfcp_adapter, adapter, card_version, "0x%04x\n", | 34 | ZFCP_DEFINE_ATTR(zfcp_adapter, adapter, card_version, "0x%04x\n", |
@@ -135,7 +135,7 @@ static ssize_t zfcp_sysfs_port_remove_store(struct device *dev, | |||
135 | { | 135 | { |
136 | struct zfcp_adapter *adapter = dev_get_drvdata(dev); | 136 | struct zfcp_adapter *adapter = dev_get_drvdata(dev); |
137 | struct zfcp_port *port; | 137 | struct zfcp_port *port; |
138 | wwn_t wwpn; | 138 | u64 wwpn; |
139 | int retval = 0; | 139 | int retval = 0; |
140 | 140 | ||
141 | down(&zfcp_data.config_sema); | 141 | down(&zfcp_data.config_sema); |
@@ -144,7 +144,7 @@ static ssize_t zfcp_sysfs_port_remove_store(struct device *dev, | |||
144 | goto out; | 144 | goto out; |
145 | } | 145 | } |
146 | 146 | ||
147 | if (strict_strtoull(buf, 0, &wwpn)) { | 147 | if (strict_strtoull(buf, 0, (unsigned long long *) &wwpn)) { |
148 | retval = -EINVAL; | 148 | retval = -EINVAL; |
149 | goto out; | 149 | goto out; |
150 | } | 150 | } |
@@ -200,7 +200,7 @@ static ssize_t zfcp_sysfs_unit_add_store(struct device *dev, | |||
200 | { | 200 | { |
201 | struct zfcp_port *port = dev_get_drvdata(dev); | 201 | struct zfcp_port *port = dev_get_drvdata(dev); |
202 | struct zfcp_unit *unit; | 202 | struct zfcp_unit *unit; |
203 | fcp_lun_t fcp_lun; | 203 | u64 fcp_lun; |
204 | int retval = -EINVAL; | 204 | int retval = -EINVAL; |
205 | 205 | ||
206 | down(&zfcp_data.config_sema); | 206 | down(&zfcp_data.config_sema); |
@@ -209,7 +209,7 @@ static ssize_t zfcp_sysfs_unit_add_store(struct device *dev, | |||
209 | goto out; | 209 | goto out; |
210 | } | 210 | } |
211 | 211 | ||
212 | if (strict_strtoull(buf, 0, &fcp_lun)) | 212 | if (strict_strtoull(buf, 0, (unsigned long long *) &fcp_lun)) |
213 | goto out; | 213 | goto out; |
214 | 214 | ||
215 | unit = zfcp_unit_enqueue(port, fcp_lun); | 215 | unit = zfcp_unit_enqueue(port, fcp_lun); |
@@ -233,7 +233,7 @@ static ssize_t zfcp_sysfs_unit_remove_store(struct device *dev, | |||
233 | { | 233 | { |
234 | struct zfcp_port *port = dev_get_drvdata(dev); | 234 | struct zfcp_port *port = dev_get_drvdata(dev); |
235 | struct zfcp_unit *unit; | 235 | struct zfcp_unit *unit; |
236 | fcp_lun_t fcp_lun; | 236 | u64 fcp_lun; |
237 | int retval = 0; | 237 | int retval = 0; |
238 | 238 | ||
239 | down(&zfcp_data.config_sema); | 239 | down(&zfcp_data.config_sema); |
@@ -242,7 +242,7 @@ static ssize_t zfcp_sysfs_unit_remove_store(struct device *dev, | |||
242 | goto out; | 242 | goto out; |
243 | } | 243 | } |
244 | 244 | ||
245 | if (strict_strtoull(buf, 0, &fcp_lun)) { | 245 | if (strict_strtoull(buf, 0, (unsigned long long *) &fcp_lun)) { |
246 | retval = -EINVAL; | 246 | retval = -EINVAL; |
247 | goto out; | 247 | goto out; |
248 | } | 248 | } |
@@ -380,8 +380,10 @@ static DEVICE_ATTR(_name, S_IRUGO, zfcp_sysfs_scsi_##_name##_show, NULL); | |||
380 | 380 | ||
381 | ZFCP_DEFINE_SCSI_ATTR(hba_id, "%s\n", | 381 | ZFCP_DEFINE_SCSI_ATTR(hba_id, "%s\n", |
382 | unit->port->adapter->ccw_device->dev.bus_id); | 382 | unit->port->adapter->ccw_device->dev.bus_id); |
383 | ZFCP_DEFINE_SCSI_ATTR(wwpn, "0x%016llx\n", unit->port->wwpn); | 383 | ZFCP_DEFINE_SCSI_ATTR(wwpn, "0x%016llx\n", |
384 | ZFCP_DEFINE_SCSI_ATTR(fcp_lun, "0x%016llx\n", unit->fcp_lun); | 384 | (unsigned long long) unit->port->wwpn); |
385 | ZFCP_DEFINE_SCSI_ATTR(fcp_lun, "0x%016llx\n", | ||
386 | (unsigned long long) unit->fcp_lun); | ||
385 | 387 | ||
386 | struct device_attribute *zfcp_sysfs_sdev_attrs[] = { | 388 | struct device_attribute *zfcp_sysfs_sdev_attrs[] = { |
387 | &dev_attr_fcp_lun, | 389 | &dev_attr_fcp_lun, |