Re: [PATCH v2] staging: ks7010: fix sparse warnings

2017-03-04 Thread Dan Carpenter
On Sat, Mar 04, 2017 at 10:56:23AM +0200, Ernestas Kulik wrote: > Currently, sparse generates many warnings for the driver. This commit > changes the types of struct fields/function variables to match the > endianness at their assignment. > > Signed-off-by: Ernestas Kulik > --- > Changes from v1:

[PATCH v2] staging: ks7010: fix sparse warnings

2017-03-04 Thread Ernestas Kulik
Currently, sparse generates many warnings for the driver. This commit changes the types of struct fields/function variables to match the endianness at their assignment. Signed-off-by: Ernestas Kulik --- Changes from v1: * Change the type of the variable being passed to ntohs() instead of casting