iio: srf08: add support for srf02 in i2c mode
Subsystems (2)
Andreas Klinger
maintainerPATCH v4 5/5 iio: srf08: add support for srf02 in i2c mode
srf02 added with support for i2c interface
Attributes for setting max range or sensitivity are omitted for the case of srf02 type sensor, because they are not supported by the hardware.
Signed-off-by Andreas Klinger <[email protected]>
--- drivers/iio/proximity/Kconfig | 8 ++--- drivers/iio/proximity/srf08.c | 81 +++++++++++++++++++++++++++++++++---------- 2 files changed, 67 insertions(+), 22 deletions(-)
drivers/iio/proximity/Kconfig +4 -4
@@ -57,12 +57,12 @@ config SX9500 module will be called sx9500. config SRF08 - tristate "Devantech SRF08/SRF10 ultrasonic ranger sensor" + tristate "Devantech SRF02/SRF08/SRF10 ultrasonic ranger sensor" depends on I2C help - 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. + Say Y here to build a driver for Devantech SRF02/SRF08/SRF10 + ultrasonic ranger sensors with i2c interface. + This driver can be used to measure the distance of objects. To compile this driver as a module, choose M here: the module will be called srf08.
drivers/iio/proximity/srf08.c +63 -18
172 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