projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9598cf
)
misc: atsha204a: Fix big endian support
author
Pali Rohár
<pali@kernel.org>
Sat, 2 Apr 2022 22:36:34 +0000
(
00:36
+0200)
committer
Tom Rini
<trini@konsulko.com>
Thu, 14 Apr 2022 19:39:14 +0000
(15:39 -0400)
Callers of function atsha204a_crc16() expect to return value in host cpu
endianity. So remove cpu_to_le16() conversion.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
drivers/misc/atsha204a-i2c.c
patch
|
blob
|
history
diff --git
a/drivers/misc/atsha204a-i2c.c
b/drivers/misc/atsha204a-i2c.c
index
b89463b
..
63fe541
100644
(file)
--- a/
drivers/misc/atsha204a-i2c.c
+++ b/
drivers/misc/atsha204a-i2c.c
@@
-146,7
+146,7
@@
static u16 atsha204a_crc16(const u8 *buffer, size_t len)
while (len--)
crc = crc16_byte(crc, *buffer++);
- return c
pu_to_le16(crc)
;
+ return c
rc
;
}
static int atsha204a_send(struct udevice *dev, const u8 *buf, u8 len)