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/qla2xxx/qla_attr.c | |
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/qla2xxx/qla_attr.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_attr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index d61df036910c..287690853caf 100644 --- a/drivers/scsi/qla2xxx/qla_attr.c +++ b/drivers/scsi/qla2xxx/qla_attr.c | |||
@@ -609,8 +609,8 @@ qla2x00_pci_info_show(struct device *dev, struct device_attribute *attr, | |||
609 | } | 609 | } |
610 | 610 | ||
611 | static ssize_t | 611 | static ssize_t |
612 | qla2x00_state_show(struct device *dev, struct device_attribute *attr, | 612 | qla2x00_link_state_show(struct device *dev, struct device_attribute *attr, |
613 | char *buf) | 613 | char *buf) |
614 | { | 614 | { |
615 | scsi_qla_host_t *ha = shost_priv(class_to_shost(dev)); | 615 | scsi_qla_host_t *ha = shost_priv(class_to_shost(dev)); |
616 | int len = 0; | 616 | int len = 0; |
@@ -814,7 +814,7 @@ static DEVICE_ATTR(isp_id, S_IRUGO, qla2x00_isp_id_show, NULL); | |||
814 | static DEVICE_ATTR(model_name, S_IRUGO, qla2x00_model_name_show, NULL); | 814 | static DEVICE_ATTR(model_name, S_IRUGO, qla2x00_model_name_show, NULL); |
815 | static DEVICE_ATTR(model_desc, S_IRUGO, qla2x00_model_desc_show, NULL); | 815 | static DEVICE_ATTR(model_desc, S_IRUGO, qla2x00_model_desc_show, NULL); |
816 | static DEVICE_ATTR(pci_info, S_IRUGO, qla2x00_pci_info_show, NULL); | 816 | static DEVICE_ATTR(pci_info, S_IRUGO, qla2x00_pci_info_show, NULL); |
817 | static DEVICE_ATTR(state, S_IRUGO, qla2x00_state_show, NULL); | 817 | static DEVICE_ATTR(link_state, S_IRUGO, qla2x00_link_state_show, NULL); |
818 | static DEVICE_ATTR(zio, S_IRUGO | S_IWUSR, qla2x00_zio_show, qla2x00_zio_store); | 818 | static DEVICE_ATTR(zio, S_IRUGO | S_IWUSR, qla2x00_zio_show, qla2x00_zio_store); |
819 | static DEVICE_ATTR(zio_timer, S_IRUGO | S_IWUSR, qla2x00_zio_timer_show, | 819 | static DEVICE_ATTR(zio_timer, S_IRUGO | S_IWUSR, qla2x00_zio_timer_show, |
820 | qla2x00_zio_timer_store); | 820 | qla2x00_zio_timer_store); |
@@ -838,7 +838,7 @@ struct device_attribute *qla2x00_host_attrs[] = { | |||
838 | &dev_attr_model_name, | 838 | &dev_attr_model_name, |
839 | &dev_attr_model_desc, | 839 | &dev_attr_model_desc, |
840 | &dev_attr_pci_info, | 840 | &dev_attr_pci_info, |
841 | &dev_attr_state, | 841 | &dev_attr_link_state, |
842 | &dev_attr_zio, | 842 | &dev_attr_zio, |
843 | &dev_attr_zio_timer, | 843 | &dev_attr_zio_timer, |
844 | &dev_attr_beacon, | 844 | &dev_attr_beacon, |