Skip to contentSkip to conversation

iio: srf08: add sensor type srf10

PATCH In review Andreas Klinger 1 participant 1 message Aug 17, 2017

Subsystems (2)
lore
Share & tools
lore

Andreas Klinger

author maintainer
#0 lore raw

PATCH v4 4/5 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.

---
 drivers/iio/proximity/Kconfig |  4 +-
 drivers/iio/proximity/srf08.c | 90 +++++++++++++++++++++++++++++++++++--------
 2 files changed, 77 insertions(+), 17 deletions(-)
drivers/iio/proximity/Kconfig +2 -2
index 5b81a8c9d438..df33ccc0d035 100644
@@ -57,10 +57,10 @@ config SX9500
 	  module will be called sx9500.
 
 config SRF08
-	tristate "Devantech SRF08 ultrasonic ranger sensor"
+	tristate "Devantech SRF08/SRF10 ultrasonic ranger sensor"
 	depends on I2C
 	help
-	  Say Y here to build a driver for Devantech SRF08 ultrasonic
+	  Say Y here to build a driver for Devantech SRF08/SRF10 ultrasonic
 	  ranger sensor. This driver can be used to measure the distance
 	  of objects.
 
drivers/iio/proximity/srf08.c +75 -15

169 lines not on this page · raw message

Signature · 11 lines
2.1.4


-- 
Andreas Klinger
Grabenreith 27
84508 Burgkirchen
+49 8623 919966
[email protected]
www.it-klinger.de
www.grabenreith.de