regmap-irq: make it possible to add irq_chip do a specific device node
authorMichael Walle <michael@walle.cc>
Thu, 2 Apr 2020 20:36:44 +0000 (22:36 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 14 Apr 2020 15:21:37 +0000 (16:21 +0100)
commit12479382877dcf6623af4676caa8d3c647469a1b
treef52335d250ac8aae4d3264f143fd1d7cd1d4e694
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
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>
drivers/base/regmap/regmap-irq.c
include/linux/regmap.h