mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
added capture_clear option to pps-gpio via dtoverlay (#2433)
This commit is contained in:
committed by
Dom Cobley
parent
89e2b1ad69
commit
c8a768bd29
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user