mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
regmap-irq: make it possible to add irq_chip do a specific device node
Add a new function regmap_add_irq_chip_np() with its corresponding devm_regmap_add_irq_chip_np() variant. Sometimes one want to register the IRQ domain on a different device node that the one of the regmap node. For example when using a MFD where there are different interrupt controllers and particularly for the generic regmap gpio_chip/irq_chip driver. In this case it is not desireable to have the IRQ domain on the parent node. Signed-off-by: Michael Walle <michael@walle.cc> Link: https://lore.kernel.org/r/20200402203656.27047-5-michael@walle.cc Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
8f3d9f3542
commit
1247938287
2 changed files with 90 additions and 28 deletions
|
@ -21,6 +21,7 @@
|
|||
struct module;
|
||||
struct clk;
|
||||
struct device;
|
||||
struct device_node;
|
||||
struct i2c_client;
|
||||
struct i3c_device;
|
||||
struct irq_domain;
|
||||
|
@ -1310,12 +1311,21 @@ struct regmap_irq_chip_data;
|
|||
int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
|
||||
int irq_base, const struct regmap_irq_chip *chip,
|
||||
struct regmap_irq_chip_data **data);
|
||||
int regmap_add_irq_chip_np(struct device_node *np, struct regmap *map, int irq,
|
||||
int irq_flags, int irq_base,
|
||||
const struct regmap_irq_chip *chip,
|
||||
struct regmap_irq_chip_data **data);
|
||||
void regmap_del_irq_chip(int irq, struct regmap_irq_chip_data *data);
|
||||
|
||||
int devm_regmap_add_irq_chip(struct device *dev, struct regmap *map, int irq,
|
||||
int irq_flags, int irq_base,
|
||||
const struct regmap_irq_chip *chip,
|
||||
struct regmap_irq_chip_data **data);
|
||||
int devm_regmap_add_irq_chip_np(struct device *dev, struct device_node *np,
|
||||
struct regmap *map, int irq, int irq_flags,
|
||||
int irq_base,
|
||||
const struct regmap_irq_chip *chip,
|
||||
struct regmap_irq_chip_data **data);
|
||||
void devm_regmap_del_irq_chip(struct device *dev, int irq,
|
||||
struct regmap_irq_chip_data *data);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue