Lines Matching refs:gpiod_ping
52 struct gpio_desc *gpiod_ping; member
80 if (gpiod_get_value(data->gpiod_ping)) { in ping_handle_irq()
109 gpiod_set_value(data->gpiod_ping, 1); in ping_read()
111 gpiod_set_value(data->gpiod_ping, 0); in ping_read()
113 ret = gpiod_direction_input(data->gpiod_ping); in ping_read()
119 data->irqnr = gpiod_to_irq(data->gpiod_ping); in ping_read()
157 ret = gpiod_direction_output(data->gpiod_ping, GPIOD_OUT_LOW); in ping_read()
221 if (gpiod_direction_output(data->gpiod_ping, GPIOD_OUT_LOW)) in ping_read()
296 data->gpiod_ping = devm_gpiod_get(dev, "ping", GPIOD_OUT_LOW); in ping_probe()
297 if (IS_ERR(data->gpiod_ping)) { in ping_probe()
299 PTR_ERR(data->gpiod_ping)); in ping_probe()
300 return PTR_ERR(data->gpiod_ping); in ping_probe()
303 if (gpiod_cansleep(data->gpiod_ping)) { in ping_probe()