diff options
author | Pali Rohár <pali@kernel.org> | 2022-04-03 01:36:34 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-14 22:39:14 +0300 |
commit | aecb338163e2fe55e32d3e2039af737a8bfaaa19 (patch) | |
tree | 5c0baf3f393950dd5b073de49fa740ea5a5e05a6 /drivers/misc | |
parent | e9598cfb283b4df080976c73493eff4b5fd62791 (diff) | |
download | u-boot-aecb338163e2fe55e32d3e2039af737a8bfaaa19.tar.xz |
misc: atsha204a: Fix big endian support
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>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/atsha204a-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c index b89463babb..63fe541dad 100644 --- 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 cpu_to_le16(crc); + return crc; } static int atsha204a_send(struct udevice *dev, const u8 *buf, u8 len) |