Skip to content
Commit 431f7667 authored by Andreas Klinger's avatar Andreas Klinger Committed by Jonathan Cameron
Browse files

iio: srf04: fix wrong limitation in distance measuring



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: default avatarZbyněk Kocur <zbynek.kocur@fel.cvut.cz>
Tested-by: default avatarZbyněk Kocur <zbynek.kocur@fel.cvut.cz>
Signed-off-by: default avatarAndreas Klinger <ak@it-klinger.de>
Cc:<Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 24e1eb5c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment