linux/drivers/iio/proximity
Matt Ranostay 45a6b8218d iio: lidar: return -EINVAL on invalid signal
Returning zero from the measurment function has the side effect of
corrupting the triggered buffer readings, better to use -EINVAL than
a zero measurement reading.

The INVALID status happens even it isn't out of range
sometimes roughly once every second or two. This can be from an
invalid second signal return path. Hence there are spurious zero
readings from the triggered buffer, and warning messages in the kernel
log.

Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-11-21 15:56:53 +00:00
..
as3935.c spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
Kconfig iio: proximity: add support for PulsedLight LIDAR 2015-08-31 16:48:16 +01:00
Makefile iio: proximity: add support for PulsedLight LIDAR 2015-08-31 16:48:16 +01:00
pulsedlight-lidar-lite-v2.c iio: lidar: return -EINVAL on invalid signal 2015-11-21 15:56:53 +00:00
sx9500.c iio: remove gpio interrupt probing from drivers that use a single interrupt 2015-10-03 12:05:51 +01:00