| /* SPDX-License-Identifier: GPL-2.0-only */ |
| /* MCP23S08 SPI/I2C GPIO driver */ |
| #include <linux/gpio/driver.h> |
| #include <linux/pinctrl/pinctrl.h> |
| * MCP types supported by driver |
| /* lock protects regmap access with bypass/cache flags */ |
| struct irq_chip irq_chip; |
| struct pinctrl_dev *pctldev; |
| struct pinctrl_desc pinctrl_desc; |
| extern const struct regmap_config mcp23x08_regmap; |
| extern const struct regmap_config mcp23x17_regmap; |
| int mcp23s08_probe_one(struct mcp23s08 *mcp, struct device *dev, |
| unsigned int addr, unsigned int type, unsigned int base); |