Skip to content

Commit

Permalink
iio: ping: set pa_laser_ping_cfg in of_ping_match
Browse files Browse the repository at this point in the history
pa_laser_ping_cfg should be set in of_ping_match
instead of pa_ping_cfg.

Fixes: 7bb501f ("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>
  • Loading branch information
YueHaibing authored and Jonathan Cameron committed Mar 8, 2020
1 parent 016a884 commit 10856d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/proximity/ping.c
Original file line number Diff line number Diff line change
Expand Up @@ -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},
{},
};

Expand Down

0 comments on commit 10856d8

Please sign in to comment.