History

gpio: Expose the gpiochip_irq_re[ql]res helpers

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.

Marc Zyngier committed 4 years ago

Commit 704f0871 parent 6c846d02 files · +8 −2Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/linux/gpio/driver.h+4−0
@@ -579,6 +579,10 @@ void gpiochip_relres_irq(struct gpio_chip *gc, unsigned int offset); · 578 unmodified lines
579579 void gpiochip_disable_irq(struct gpio_chip *gc, unsigned int offset);
580580 void gpiochip_enable_irq(struct gpio_chip *gc, unsigned int offset);
581581
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+
582586 /* Line status inquiry for drivers */
583587 bool gpiochip_line_is_open_drain(struct gpio_chip *gc, unsigned int offset);
584588 bool gpiochip_line_is_open_source(struct gpio_chip *gc, unsigned int offset);