Skip to content
Commit 49d22167 authored by Herbert Xu's avatar Herbert Xu
Browse files

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: 11105693 ("crypto: atmel-ecc - introduce Microchip...")
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 20a0f976
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment