]> git.baikalelectronics.ru Git - kernel.git/commit
iio: srf08: add sensor type srf10
authorAndreas Klinger <ak@it-klinger.de>
Wed, 16 Aug 2017 19:34:23 +0000 (21:34 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 18 Aug 2017 07:01:58 +0000 (08:01 +0100)
commit3ff8f4a24ea69e21fb12da10af5b432ed24220cf
tree949366c7bd0b2ac54ce08b19fc4e3af78534b745
parentc338ebbe64bfb7e774ea146cad5b8f6c7f27e17d
iio: srf08: add sensor type srf10

Ultrasonic sensor srf10 is quite similar to srf08 and now also supported by
the driver as device tree compatible string.

It was necessary to prepare the source for supplementary sensors. This is
done by enum srf08_sensor_type.

The most significiant difference between srf08 and srf10 is another range
and values of register gain (in the driver it's call sensitivity).
Therefore the array of it is extended and dependent of the sensor type.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/Kconfig
drivers/iio/proximity/srf08.c