crypto: atmel - Fix sparse endianness warnings
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 31 May 2019 06:39:51 +0000 (14:39 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 6 Jun 2019 06:38:57 +0000 (14:38 +0800)
commit49d22167f826134e579179aa2217c74647e62015
tree9f440d6203d8872105c2f2669e1e9ee5d44d8aff
parent20a0f9761343fba9b25ea46bd3a3e5e533d974f8
crypto: atmel - Fix sparse endianness warnings

The param2 member in atmel_i2c_cmd is supposed to be little-endian
but was marked as u16.  This patch changes it to a __le16 which
reveals a missing endian swap in atmel_i2c_init_read_cmd.

Another missing little-endian marking is also added in
atmel_i2c_checksum.

Fixes: 11105693fa05 ("crypto: atmel-ecc - introduce Microchip...")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-i2c.c
drivers/crypto/atmel-i2c.h