mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 12:14:01 +08:00
iio:light:apds9960 Fix sparse endian warnings.
This patch is a tidy up of warnings from the autobuilder. >> drivers/iio/light/apds9960.c:495:32: sparse: cast to restricted __le16 drivers/iio/light/apds9960.c:635:24: sparse: cast to restricted __le16 >> drivers/iio/light/apds9960.c:672:21: sparse: incorrect type in assignment (different base types) drivers/iio/light/apds9960.c:672:21: expected unsigned short [unsigned] [usertype] buf drivers/iio/light/apds9960.c:672:21: got restricted __le16 [usertype] <noident> Signed-off-by: Jonathan Cameron <jic23@kernel.org> Cc: mranostay@gmail.com Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
c04782177f
commit
801ab33596
@ -472,7 +472,7 @@ static int apds9960_read_raw(struct iio_dev *indio_dev,
|
||||
int *val, int *val2, long mask)
|
||||
{
|
||||
struct apds9960_data *data = iio_priv(indio_dev);
|
||||
u16 buf;
|
||||
__le16 buf;
|
||||
int ret = -EINVAL;
|
||||
|
||||
if (data->gesture_mode_running)
|
||||
@ -613,7 +613,7 @@ static int apds9960_read_event(struct iio_dev *indio_dev,
|
||||
int *val, int *val2)
|
||||
{
|
||||
u8 reg;
|
||||
u16 buf;
|
||||
__le16 buf;
|
||||
int ret = 0;
|
||||
struct apds9960_data *data = iio_priv(indio_dev);
|
||||
|
||||
@ -649,7 +649,7 @@ static int apds9960_write_event(struct iio_dev *indio_dev,
|
||||
int val, int val2)
|
||||
{
|
||||
u8 reg;
|
||||
u16 buf;
|
||||
__le16 buf;
|
||||
int ret = 0;
|
||||
struct apds9960_data *data = iio_priv(indio_dev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user