added capture_clear option to pps-gpio via dtoverlay (#2433)

This commit is contained in:
hdoverobinson
2018-03-13 06:58:39 -04:00
committed by Dom Cobley
parent 9ea1f72d5e
commit fd9ed193e3

View File

@@ -117,6 +117,9 @@ static int pps_gpio_setup(struct device *dev)
data->assert_falling_edge =
device_property_read_bool(dev, "assert-falling-edge");
data->capture_clear =
device_property_read_bool(dev, "capture-clear");
data->echo_pin = devm_gpiod_get_optional(dev, "echo", GPIOD_OUT_LOW);
if (IS_ERR(data->echo_pin))
return dev_err_probe(dev, PTR_ERR(data->echo_pin),