]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
Documentation: iio: Clarify meaning of IIO_DISTANCE channel type
authorPeter Meerwald-Stadler <pmeerw@pmeerw.net>
Tue, 10 Oct 2017 13:48:46 +0000 (15:48 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 14 Oct 2017 17:19:09 +0000 (18:19 +0100)
IIO_DISTANCE is used for two purposes: for pedometers to record the
distance covered by a walker, and to measure the distance to an object

IIO_DISTANCE is in meters while IIO_PROXIMITY is a unitless measure
indirectly proportional to distance (higher value relates to a closer
object)

Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/ABI/testing/sysfs-bus-iio

index 7eead5f97e0295b009c56b1d82d13ecf9e6163e6..3fc79185cc56a57d1224c339ce653fa78acfc77b 100644 (file)
@@ -1242,9 +1242,9 @@ What:             /sys/.../iio:deviceX/in_distance_raw
 KernelVersion: 4.0
 Contact:       linux-iio@vger.kernel.org
 Description:
-               This attribute is used to read the distance covered by the user
-               since the last reboot while activated. Units after application
-               of scale are meters.
+               This attribute is used to read the measured distance to an object
+               or the distance covered by the user since the last reboot while
+               activated. Units after application of scale are meters.
 
 What:          /sys/bus/iio/devices/iio:deviceX/store_eeprom
 KernelVersion: 3.4.0