summaryrefslogtreecommitdiff
path: root/drivers/iio/proximity/Makefile
diff options
context:
space:
mode:
authorAndreas Klinger <ak@it-klinger.de>2019-11-25 09:05:02 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-12-01 10:23:04 +0000
commit7bb501f49ddb96365ef8d4fe882e5ceaa36215e4 (patch)
treec851ac3be292902048031903ff728fa4ca2a51b1 /drivers/iio/proximity/Makefile
parentf3bcd06f574a0751ee40ec25b9aad6968877ae5f (diff)
downloadlwn-7bb501f49ddb96365ef8d4fe882e5ceaa36215e4.tar.gz
lwn-7bb501f49ddb96365ef8d4fe882e5ceaa36215e4.zip
iio: ping: add parallax ping sensors
Add support for parallax ping and laser ping sensors with just one pin for trigger and echo signal. This driver is based on srf04. In contrast to it it's necessary to change direction of the pin and to request the irq just for the period when the echo is rising and falling. Because this adds a lot of cases there is this individual driver for handling this type of sensors. Add a new configuration variable CONFIG_PING to Kconfig and Makefile. Julia reported an issue with failing to unlock a mutex in some error paths. Signed-off-by: Andreas Klinger <ak@it-klinger.de> Reported-by: kbuild test robot <lkp@intel.com> Reported-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/proximity/Makefile')
-rw-r--r--drivers/iio/proximity/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/proximity/Makefile b/drivers/iio/proximity/Makefile
index 0bb5f9de13d6..c591b019304e 100644
--- a/drivers/iio/proximity/Makefile
+++ b/drivers/iio/proximity/Makefile
@@ -8,6 +8,7 @@ obj-$(CONFIG_AS3935) += as3935.o
obj-$(CONFIG_ISL29501) += isl29501.o
obj-$(CONFIG_LIDAR_LITE_V2) += pulsedlight-lidar-lite-v2.o
obj-$(CONFIG_MB1232) += mb1232.o
+obj-$(CONFIG_PING) += ping.o
obj-$(CONFIG_RFD77402) += rfd77402.o
obj-$(CONFIG_SRF04) += srf04.o
obj-$(CONFIG_SRF08) += srf08.o