diff options
author | Mark Brown <broonie@kernel.org> | 2023-04-05 21:56:44 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-04-05 21:56:44 +0100 |
commit | 383b3232732dca5b084a8f90b529d53c18b03e74 (patch) | |
tree | d961c746a63e143cae930153f737757129923bbc /include/linux/regmap.h | |
parent | fac79bad889bb167a37492181646992c8c48903b (diff) | |
parent | 7697c64b9e4908196f0ae68aa6d423dd40607973 (diff) |
Migrate the PCIe-IDIO-24 and WS16C48 GPIO drivers
Merge series from William Breathitt Gray <william.gray@linaro.org>:
The regmap API supports IO port accessors so we can take advantage of
regmap abstractions rather than handling access to the device registers
directly in the driver.
A patch to pass irq_drv_data as a parameter for struct regmap_irq_chip
set_type_config() is included. This is needed by the
idio_24_set_type_config() and ws16c48_set_type_config() callbacks in
order to update the type configuration on their respective devices.
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r-- | include/linux/regmap.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 4d55ac88ba9e..8743b177399e 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -1655,7 +1655,8 @@ struct regmap_irq_chip { int (*set_type_virt)(unsigned int **buf, unsigned int type, unsigned long hwirq, int reg); int (*set_type_config)(unsigned int **buf, unsigned int type, - const struct regmap_irq *irq_data, int idx); + const struct regmap_irq *irq_data, int idx, + void *irq_drv_data); unsigned int (*get_irq_reg)(struct regmap_irq_chip_data *data, unsigned int base, int index); void *irq_drv_data; @@ -1664,7 +1665,8 @@ struct regmap_irq_chip { unsigned int regmap_irq_get_irq_reg_linear(struct regmap_irq_chip_data *data, unsigned int base, int index); int regmap_irq_set_type_config_simple(unsigned int **buf, unsigned int type, - const struct regmap_irq *irq_data, int idx); + const struct regmap_irq *irq_data, + int idx, void *irq_drv_data); int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags, int irq_base, const struct regmap_irq_chip *chip, |