mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 01:49:36 +00:00
![Russell King](/assets/img/avatar_default.png)
Add support for mapping gpio-reg gpios to interrupts. This may be a non-linear mapping - some gpios in the register may not even have corresponding interrupts associated with them, so we need to pass an array. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 lines
336 B
C
13 lines
336 B
C
#ifndef GPIO_REG_H
|
|
#define GPIO_REG_H
|
|
|
|
struct device;
|
|
struct irq_domain;
|
|
|
|
struct gpio_chip *gpio_reg_init(struct device *dev, void __iomem *reg,
|
|
int base, int num, const char *label, u32 direction, u32 def_out,
|
|
const char *const *names, struct irq_domain *irqdom, const int *irqs);
|
|
|
|
int gpio_reg_resume(struct gpio_chip *gc);
|
|
|
|
#endif
|