linux/drivers/iio/proximity
Jonathan Cameron d2080a87a3 iio: proximity: pulsedlight v2: Tidy up an endian issue
Sparse identified the following
CHECK   drivers/iio/proximity/pulsedlight-lidar-lite-v2.c
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c:144:24: warning: cast to restricted __be16
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c:144:24: warning: cast to restricted __be16
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c:144:24: warning: cast to restricted __be16
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c:144:24: warning: cast to restricted __be16

This cleans up by adding a local variable to hold the value whilst
it is __be16 before applying endian converstion into eventual destination.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-10-18 19:57:47 +01:00
..
as3935.c iio: proximity: as3935: fix use-after-free on device remove 2019-04-04 20:19:56 +01:00
isl29501.c iio: light: isl29501: Simplify code to kill compiler warning 2018-09-02 09:56:49 +01:00
Kconfig Kconfig: Fix the reference to the RFD77402 ToF sensor in the 'help' section 2019-08-25 19:08:36 +01:00
Makefile mb1232.c: add distance iio sensor with i2c 2019-04-04 20:20:17 +01:00
mb1232.c mb1232.c: add distance iio sensor with i2c 2019-04-04 20:20:17 +01:00
pulsedlight-lidar-lite-v2.c iio: proximity: pulsedlight v2: Tidy up an endian issue 2019-10-18 19:57:47 +01:00
rfd77402.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
srf04.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
srf08.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
sx9500.c iio: proximity: sx9500: fix iio_triggered_buffer_{predisable,postenable} positions 2019-10-07 21:31:19 +01:00
vl53l0x-i2c.c iio: proximity: Add driver support for ST's VL53L0X ToF ranging sensor. 2018-09-22 16:42:56 +01:00