0302e955f69b3f9722c2d9d27013f9db92e4663d
[openwrt/staging/ldir.git] /
1 From ab7d6660039b5b12a6ffad0f23c10425ccfea306 Mon Sep 17 00:00:00 2001
2 From: hdoverobinson <hdoverobinson@gmail.com>
3 Date: Tue, 13 Mar 2018 06:58:39 -0400
4 Subject: [PATCH] added capture_clear option to pps-gpio via dtoverlay
5 (#2433)
6
7 ---
8 drivers/pps/clients/pps-gpio.c | 3 +++
9 1 file changed, 3 insertions(+)
10
11 --- a/drivers/pps/clients/pps-gpio.c
12 +++ b/drivers/pps/clients/pps-gpio.c
13 @@ -113,6 +113,9 @@ static int pps_gpio_setup(struct device
14 data->assert_falling_edge =
15 device_property_read_bool(dev, "assert-falling-edge");
16
17 + data->capture_clear =
18 + device_property_read_bool(dev, "capture-clear");
19 +
20 data->echo_pin = devm_gpiod_get_optional(dev, "echo", GPIOD_OUT_LOW);
21 if (IS_ERR(data->echo_pin))
22 return dev_err_probe(dev, PTR_ERR(data->echo_pin),