Lines Matching refs:gpiod_ping
53 struct gpio_desc *gpiod_ping; member
81 if (gpiod_get_value(data->gpiod_ping)) { in ping_handle_irq()
110 gpiod_set_value(data->gpiod_ping, 1); in ping_read()
112 gpiod_set_value(data->gpiod_ping, 0); in ping_read()
114 ret = gpiod_direction_input(data->gpiod_ping); in ping_read()
120 data->irqnr = gpiod_to_irq(data->gpiod_ping); in ping_read()
158 ret = gpiod_direction_output(data->gpiod_ping, GPIOD_OUT_LOW); in ping_read()
222 if (gpiod_direction_output(data->gpiod_ping, GPIOD_OUT_LOW)) in ping_read()
297 data->gpiod_ping = devm_gpiod_get(dev, "ping", GPIOD_OUT_LOW); in ping_probe()
298 if (IS_ERR(data->gpiod_ping)) { in ping_probe()
300 PTR_ERR(data->gpiod_ping)); in ping_probe()
301 return PTR_ERR(data->gpiod_ping); in ping_probe()
304 if (gpiod_cansleep(data->gpiod_ping)) { in ping_probe()