Home
last modified time | relevance | path

Searched refs:gpio_trigger (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/power/reset/
H A Dltc2952-poweroff.c70 struct gpio_desc *gpio_trigger; member
146 if (gpiod_get_value(data->gpio_trigger)) { in ltc2952_poweroff_handler()
201 data->gpio_trigger = devm_gpiod_get_optional(&pdev->dev, "trigger", in ltc2952_poweroff_init()
203 if (IS_ERR(data->gpio_trigger)) { in ltc2952_poweroff_init()
210 data->gpio_trigger = NULL; in ltc2952_poweroff_init()
213 if (devm_request_irq(&pdev->dev, gpiod_to_irq(data->gpio_trigger), in ltc2952_poweroff_init()
233 if (data->gpio_trigger) { in ltc2952_poweroff_init()
236 devm_gpiod_put(&pdev->dev, data->gpio_trigger); in ltc2952_poweroff_init()
237 data->gpio_trigger = NULL; in ltc2952_poweroff_init()