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>
This commit is contained in:
Pali Rohár
2022-04-03 00:36:34 +02:00
committed by Tom Rini
parent e9598cfb28
commit aecb338163

View File

@@ -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)