android_kernel_motorola_sm6225/drivers/iio/proximity
Andreas Klinger 20b9e094dc iio: srf04: fix wrong limitation in distance measuring
commit 431f7667bd6889a274913162dfd19cce9d84848e upstream.

The measured time value in the driver is limited to the maximum distance
which can be read by the sensor. This limitation was wrong and is fixed
by this patch.

It also takes into account that we are supporting a variety of sensors
today and that the recently added sensors have a higher maximum
distance range.

Changes in v2:
- Added a Tested-by

Suggested-by: Zbyněk Kocur <zbynek.kocur@fel.cvut.cz>
Tested-by: Zbyněk Kocur <zbynek.kocur@fel.cvut.cz>
Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Cc:<Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-12 19:20:40 +01:00
..
as3935.c iio: add SPDX identifier for various drivers 2018-02-18 11:55:19 +00:00
isl29501.c iio: light: isl29501: Add support for the ISL29501 ToF sensor. 2018-07-23 19:18:10 +01:00
Kconfig iio: light: isl29501: Add support for the ISL29501 ToF sensor. 2018-07-23 19:18:10 +01:00
Makefile iio: light: isl29501: Add support for the ISL29501 ToF sensor. 2018-07-23 19:18:10 +01:00
pulsedlight-lidar-lite-v2.c iio: add SPDX identifier for various drivers 2018-02-18 11:55:19 +00:00
rfd77402.c iio: proximity: Add rfd77402 driver 2017-10-14 18:28:51 +01:00
srf04.c iio: srf04: fix wrong limitation in distance measuring 2019-11-12 19:20:40 +01:00
srf08.c iio:proximity: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 22:14:51 +01:00
sx9500.c iio: proximity: sx9500: Add GPIO ACPI mapping table 2018-03-03 15:11:27 +00:00