diff options
author | Jing Huang <huangj@brocade.com> | 2010-10-18 20:10:50 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-10-25 17:17:14 -0400 |
commit | ba816ea8e2eacbf3d198ad1859f413c2d6213434 (patch) | |
tree | 92399b02434b350fe4c767c0cb4f1790b7fee763 /drivers/scsi/bfa/bfad_attr.c | |
parent | 6a18b1675fdf08a6dc861e39c3f94309a03e7f16 (diff) |
[SCSI] bfa: replace endian swap macros with the ones provided by linux
Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfad_attr.c')
-rw-r--r-- | drivers/scsi/bfa/bfad_attr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/bfa/bfad_attr.c b/drivers/scsi/bfa/bfad_attr.c index d8843720eac1..27dd06ff6a3d 100644 --- a/drivers/scsi/bfa/bfad_attr.c +++ b/drivers/scsi/bfa/bfad_attr.c | |||
@@ -70,7 +70,7 @@ bfad_im_get_starget_node_name(struct scsi_target *starget) | |||
70 | if (itnim) | 70 | if (itnim) |
71 | node_name = bfa_fcs_itnim_get_nwwn(&itnim->fcs_itnim); | 71 | node_name = bfa_fcs_itnim_get_nwwn(&itnim->fcs_itnim); |
72 | 72 | ||
73 | fc_starget_node_name(starget) = bfa_os_htonll(node_name); | 73 | fc_starget_node_name(starget) = cpu_to_be64(node_name); |
74 | spin_unlock_irqrestore(&bfad->bfad_lock, flags); | 74 | spin_unlock_irqrestore(&bfad->bfad_lock, flags); |
75 | } | 75 | } |
76 | 76 | ||
@@ -96,7 +96,7 @@ bfad_im_get_starget_port_name(struct scsi_target *starget) | |||
96 | if (itnim) | 96 | if (itnim) |
97 | port_name = bfa_fcs_itnim_get_pwwn(&itnim->fcs_itnim); | 97 | port_name = bfa_fcs_itnim_get_pwwn(&itnim->fcs_itnim); |
98 | 98 | ||
99 | fc_starget_port_name(starget) = bfa_os_htonll(port_name); | 99 | fc_starget_port_name(starget) = cpu_to_be64(port_name); |
100 | spin_unlock_irqrestore(&bfad->bfad_lock, flags); | 100 | spin_unlock_irqrestore(&bfad->bfad_lock, flags); |
101 | } | 101 | } |
102 | 102 | ||
@@ -249,7 +249,7 @@ bfad_im_get_host_fabric_name(struct Scsi_Host *shost) | |||
249 | 249 | ||
250 | fabric_nwwn = bfa_fcs_lport_get_fabric_name(port->fcs_port); | 250 | fabric_nwwn = bfa_fcs_lport_get_fabric_name(port->fcs_port); |
251 | 251 | ||
252 | fc_host_fabric_name(shost) = bfa_os_htonll(fabric_nwwn); | 252 | fc_host_fabric_name(shost) = cpu_to_be64(fabric_nwwn); |
253 | 253 | ||
254 | } | 254 | } |
255 | 255 | ||
@@ -733,7 +733,7 @@ bfad_im_node_name_show(struct device *dev, struct device_attribute *attr, | |||
733 | u64 nwwn; | 733 | u64 nwwn; |
734 | 734 | ||
735 | nwwn = bfa_fcs_lport_get_nwwn(port->fcs_port); | 735 | nwwn = bfa_fcs_lport_get_nwwn(port->fcs_port); |
736 | return snprintf(buf, PAGE_SIZE, "0x%llx\n", bfa_os_htonll(nwwn)); | 736 | return snprintf(buf, PAGE_SIZE, "0x%llx\n", cpu_to_be64(nwwn)); |
737 | } | 737 | } |
738 | 738 | ||
739 | static ssize_t | 739 | static ssize_t |