]> asedeno.scripts.mit.edu Git - linux.git/commit
mb1232.c: add distance iio sensor with i2c
authorAndreas Klinger <ak@it-klinger.de>
Sun, 17 Mar 2019 20:38:03 +0000 (21:38 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:20:17 +0000 (20:20 +0100)
commit16b05261537e36cc64369291688a84c36ac3cae3
tree639ab36076f481cd97d48f7b999ab0c66d0f199b
parent7483e40d7e43fb718d1014cee650b2333cf23116
mb1232.c: add distance iio sensor with i2c

Add I2CXL-MaxSonar ultrasonic distance sensors of types mb1202, mb1212,
mb1222, mb1232, mb1242, mb7040, mb7137 using an i2c interface

Implemented functionality:
- reading the distance via in_distance_raw
- buffered mode with trigger
- make use of interrupt to announce completion of ranging

Add mb1232 driver to Kconfig and Makefile

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/Makefile
drivers/iio/proximity/mb1232.c [new file with mode: 0644]