summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pm8001/pm8001_chips.h
diff options
context:
space:
mode:
authorSantosh Nayak <santoshprasadnayak@gmail.com>2012-02-26 15:44:46 +0100
committerJames Bottomley <JBottomley@Parallels.com>2012-02-29 23:54:09 +0100
commit8270ee2abb78c73b73e04f2909b0de15540c9017 (patch)
treee5087044dd516f579309a1972dd574750badb307 /drivers/scsi/pm8001/pm8001_chips.h
parent[SCSI] pm8001: Fix possible racing condition. (diff)
downloadlinux-8270ee2abb78c73b73e04f2909b0de15540c9017.tar.xz
linux-8270ee2abb78c73b73e04f2909b0de15540c9017.zip
[SCSI] pm8001: fix endian issue with code optimization.
1. Fix endian issue. 2. Fix the following warning : " drivers/scsi/pm8001/pm8001_hwi.c:2932:32: warning: comparison between ‘enum sas_device_type’ and ‘enum sas_dev_type’". 3. Few code optimization. Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com> Acked-by: Jack Wang <jack_wang@usish.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_chips.h')
-rw-r--r--drivers/scsi/pm8001/pm8001_chips.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/pm8001/pm8001_chips.h b/drivers/scsi/pm8001/pm8001_chips.h
index 4efa4d0950e5..9241c7826034 100644
--- a/drivers/scsi/pm8001/pm8001_chips.h
+++ b/drivers/scsi/pm8001/pm8001_chips.h
@@ -46,9 +46,9 @@ static inline u32 pm8001_read_32(void *virt_addr)
return *((u32 *)virt_addr);
}
-static inline void pm8001_write_32(void *addr, u32 offset, u32 val)
+static inline void pm8001_write_32(void *addr, u32 offset, __le32 val)
{
- *((u32 *)(addr + offset)) = val;
+ *((__le32 *)(addr + offset)) = val;
}
static inline u32 pm8001_cr32(struct pm8001_hba_info *pm8001_ha, u32 bar,