diff options
author | Hannes Reinecke <hare@suse.de> | 2008-03-18 09:32:28 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-22 16:16:30 -0400 |
commit | bbd1ae412c9eb09ae7bb11cfaf7018a2367d493f (patch) | |
tree | ce26ca995c8058b6dffcb3f086c5ae5d92eda5b0 /drivers/scsi/lpfc | |
parent | b0ed43360fdca227048d88a08290365cb681c1a8 (diff) |
[SCSI] qla2xxx, lfpc: Rename 'state' attribute to 'link_state'
lpfc and qla2xxx overwrite the standard 'state' attribute with
custom callbacks. So rename the custom attributes to 'link_state'
and retain the original meaning of the 'state' attribute.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Acked-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Acked-by: James Smart <James.Smart@Emulex.Com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index a9fbb3f88659..960baaf11fb1 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c | |||
@@ -182,8 +182,8 @@ lpfc_option_rom_version_show(struct device *dev, struct device_attribute *attr, | |||
182 | return snprintf(buf, PAGE_SIZE, "%s\n", phba->OptionROMVersion); | 182 | return snprintf(buf, PAGE_SIZE, "%s\n", phba->OptionROMVersion); |
183 | } | 183 | } |
184 | static ssize_t | 184 | static ssize_t |
185 | lpfc_state_show(struct device *dev, struct device_attribute *attr, | 185 | lpfc_link_state_show(struct device *dev, struct device_attribute *attr, |
186 | char *buf) | 186 | char *buf) |
187 | { | 187 | { |
188 | struct Scsi_Host *shost = class_to_shost(dev); | 188 | struct Scsi_Host *shost = class_to_shost(dev); |
189 | struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; | 189 | struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; |
@@ -936,7 +936,7 @@ static DEVICE_ATTR(programtype, S_IRUGO, lpfc_programtype_show, NULL); | |||
936 | static DEVICE_ATTR(portnum, S_IRUGO, lpfc_vportnum_show, NULL); | 936 | static DEVICE_ATTR(portnum, S_IRUGO, lpfc_vportnum_show, NULL); |
937 | static DEVICE_ATTR(fwrev, S_IRUGO, lpfc_fwrev_show, NULL); | 937 | static DEVICE_ATTR(fwrev, S_IRUGO, lpfc_fwrev_show, NULL); |
938 | static DEVICE_ATTR(hdw, S_IRUGO, lpfc_hdw_show, NULL); | 938 | static DEVICE_ATTR(hdw, S_IRUGO, lpfc_hdw_show, NULL); |
939 | static DEVICE_ATTR(state, S_IRUGO, lpfc_state_show, NULL); | 939 | static DEVICE_ATTR(link_state, S_IRUGO, lpfc_link_state_show, NULL); |
940 | static DEVICE_ATTR(option_rom_version, S_IRUGO, | 940 | static DEVICE_ATTR(option_rom_version, S_IRUGO, |
941 | lpfc_option_rom_version_show, NULL); | 941 | lpfc_option_rom_version_show, NULL); |
942 | static DEVICE_ATTR(num_discovered_ports, S_IRUGO, | 942 | static DEVICE_ATTR(num_discovered_ports, S_IRUGO, |
@@ -1666,7 +1666,7 @@ struct device_attribute *lpfc_hba_attrs[] = { | |||
1666 | &dev_attr_fwrev, | 1666 | &dev_attr_fwrev, |
1667 | &dev_attr_hdw, | 1667 | &dev_attr_hdw, |
1668 | &dev_attr_option_rom_version, | 1668 | &dev_attr_option_rom_version, |
1669 | &dev_attr_state, | 1669 | &dev_attr_link_state, |
1670 | &dev_attr_num_discovered_ports, | 1670 | &dev_attr_num_discovered_ports, |
1671 | &dev_attr_lpfc_drvr_version, | 1671 | &dev_attr_lpfc_drvr_version, |
1672 | &dev_attr_lpfc_temp_sensor, | 1672 | &dev_attr_lpfc_temp_sensor, |
@@ -1714,7 +1714,7 @@ struct device_attribute *lpfc_hba_attrs[] = { | |||
1714 | 1714 | ||
1715 | struct device_attribute *lpfc_vport_attrs[] = { | 1715 | struct device_attribute *lpfc_vport_attrs[] = { |
1716 | &dev_attr_info, | 1716 | &dev_attr_info, |
1717 | &dev_attr_state, | 1717 | &dev_attr_link_state, |
1718 | &dev_attr_num_discovered_ports, | 1718 | &dev_attr_num_discovered_ports, |
1719 | &dev_attr_lpfc_drvr_version, | 1719 | &dev_attr_lpfc_drvr_version, |
1720 | &dev_attr_lpfc_log_verbose, | 1720 | &dev_attr_lpfc_log_verbose, |