From: Christian Lamparter Date: Fri, 15 Oct 2010 21:35:57 +0000 (+0200) Subject: carlu: add missing endian conversion X-Git-Tag: 1.9.1~13 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=232b752b7772ade04210e562c0381e3988dc6fa0;p=carl9170fw.git carlu: add missing endian conversion Signed-off-by: Christian Lamparter --- diff --git a/tools/carlu/src/cmd.c b/tools/carlu/src/cmd.c index 56b9f8b..81702b3 100644 --- a/tools/carlu/src/cmd.c +++ b/tools/carlu/src/cmd.c @@ -120,7 +120,7 @@ int carlu_cmd_write_mem(struct carlu *ar, const uint32_t addr, const uint32_t val) { int err; - __le32 msg, block[2] = { addr, val }; + __le32 msg, block[2] = { cpu_to_le32(addr), cpu_to_le32(val) }; err = carlusb_cmd(ar, CARL9170_CMD_WREG, (void *) &block, sizeof(block),