Lines Matching full:gpiod
21 struct gpio_desc *gpiod; /* gpio that triggers the led */ member
30 tmp = gpiod_get_value_cansleep(gpio_data->gpiod); in gpio_trig_irq()
89 gpio_data->gpiod = gpiod_get_optional(dev, "trigger-sources", GPIOD_IN); in gpio_trig_activate()
90 if (IS_ERR(gpio_data->gpiod)) { in gpio_trig_activate()
91 ret = PTR_ERR(gpio_data->gpiod); in gpio_trig_activate()
95 if (!gpio_data->gpiod) { in gpio_trig_activate()
101 gpiod_set_consumer_name(gpio_data->gpiod, "led-trigger"); in gpio_trig_activate()
106 ret = request_threaded_irq(gpiod_to_irq(gpio_data->gpiod), NULL, gpio_trig_irq, in gpio_trig_activate()
111 gpiod_put(gpio_data->gpiod); in gpio_trig_activate()
126 free_irq(gpiod_to_irq(gpio_data->gpiod), led); in gpio_trig_deactivate()
127 gpiod_put(gpio_data->gpiod); in gpio_trig_deactivate()