projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c34bc2
)
i2c-pmcmsp: Fix endianness misannotation
author
Harvey Harrison
<
[email protected]
>
Thu, 11 Dec 2008 11:11:20 +0000
(12:11 +0100)
committer
Jean Delvare
<
[email protected]
>
Thu, 11 Dec 2008 11:11:20 +0000
(12:11 +0100)
tmp is used as host-endian and is loaded from a be64, fix the cast and the
endian accessor used.
Signed-off-by: Harvey Harrison <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Cc: Ben Dooks <
[email protected]
>
Signed-off-by: Jean Delvare <
[email protected]
>
drivers/i2c/busses/i2c-pmcmsp.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-pmcmsp.c
b/drivers/i2c/busses/i2c-pmcmsp.c
index dcf2045b5222b44aac99b568f7170701ecf0ae78..0bdb2d7f0570bd465e59b4b87ef23dd33db04b1d 100644
(file)
--- a/
drivers/i2c/busses/i2c-pmcmsp.c
+++ b/
drivers/i2c/busses/i2c-pmcmsp.c
@@
-486,7
+486,7
@@
static enum pmcmsptwi_xfer_result pmcmsptwi_xfer_cmd(
if (cmd->type == MSP_TWI_CMD_WRITE ||
cmd->type == MSP_TWI_CMD_WRITE_READ) {
-
__be64 tmp = cpu_to_be64p((u
64 *)cmd->write_data);
+
u64 tmp = be64_to_cpup((__be
64 *)cmd->write_data);
tmp >>= (MSP_MAX_BYTES_PER_RW - cmd->write_len) * 8;
dev_dbg(&pmcmsptwi_adapter.dev, "Writing 0x%016llx\n", tmp);
pmcmsptwi_writel(tmp & 0x00000000ffffffffLL,