blob: 5c6efd394cb0eda9f21f7105722c25ca1e80caac [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Russell King380639c2016-08-31 08:49:44 +01002#ifndef GPIO_REG_H
3#define GPIO_REG_H
4
5struct device;
Russell King0e3cb6e2016-09-02 12:05:56 +01006struct irq_domain;
Russell King380639c2016-08-31 08:49:44 +01007
8struct gpio_chip *gpio_reg_init(struct device *dev, void __iomem *reg,
9 int base, int num, const char *label, u32 direction, u32 def_out,
Russell King0e3cb6e2016-09-02 12:05:56 +010010 const char *const *names, struct irq_domain *irqdom, const int *irqs);
Russell King380639c2016-08-31 08:49:44 +010011
12int gpio_reg_resume(struct gpio_chip *gc);
13
14#endif