The GPIO subsystem has a couple of internal helpers to manage resources on behalf of the irqchip. Expose them so that GPIO drivers can use them directly.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -579,6 +579,10 @@ void gpiochip_relres_irq(struct gpio_chip *gc, unsigned int offset); · 578 unmodified lines | |||
| 579 | void gpiochip_disable_irq(struct gpio_chip *gc, unsigned int offset); | 579 | void gpiochip_disable_irq(struct gpio_chip *gc, unsigned int offset); |
| 580 | void gpiochip_enable_irq(struct gpio_chip *gc, unsigned int offset); | 580 | void gpiochip_enable_irq(struct gpio_chip *gc, unsigned int offset); |
| 581 | 581 | ||
| 582 | /* irq_data versions of the above */ | ||
| 583 | int gpiochip_irq_reqres(struct irq_data *data); | ||
| 584 | void gpiochip_irq_relres(struct irq_data *data); | ||
| 585 | |||
| 582 | /* Line status inquiry for drivers */ | 586 | /* Line status inquiry for drivers */ |
| 583 | bool gpiochip_line_is_open_drain(struct gpio_chip *gc, unsigned int offset); | 587 | bool gpiochip_line_is_open_drain(struct gpio_chip *gc, unsigned int offset); |
| 584 | bool gpiochip_line_is_open_source(struct gpio_chip *gc, unsigned int offset); | 588 | bool gpiochip_line_is_open_source(struct gpio_chip *gc, unsigned int offset); |