summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2020-03-04 12:34:23 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-03-08 17:21:23 +0100
commit10856d88f7653b42196ca5b2775bbc1f15122a58 (patch)
treea187ef992d25a14d6ef7ef395b128d5a35a4bd0a /drivers/iio
parentiio: chemical: sps30: fix missing triggered buffer dependency (diff)
downloadlinux-10856d88f7653b42196ca5b2775bbc1f15122a58.tar.xz
linux-10856d88f7653b42196ca5b2775bbc1f15122a58.zip
iio: ping: set pa_laser_ping_cfg in of_ping_match
pa_laser_ping_cfg should be set in of_ping_match instead of pa_ping_cfg. Fixes: 7bb501f49ddb ("iio: ping: add parallax ping sensors") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Andreas Klinger <ak@it-klinger.de> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/proximity/ping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/proximity/ping.c b/drivers/iio/proximity/ping.c
index 34aff108dff5..12b893c5b0ee 100644
--- a/drivers/iio/proximity/ping.c
+++ b/drivers/iio/proximity/ping.c
@@ -269,7 +269,7 @@ static const struct iio_chan_spec ping_chan_spec[] = {
static const struct of_device_id of_ping_match[] = {
{ .compatible = "parallax,ping", .data = &pa_ping_cfg},
- { .compatible = "parallax,laserping", .data = &pa_ping_cfg},
+ { .compatible = "parallax,laserping", .data = &pa_laser_ping_cfg},
{},
};