regulator: irq_helper: Provide helper for trivial IRQ notifications
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Wed, 24 Nov 2021 07:17:13 +0000 (09:17 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 24 Nov 2021 12:57:30 +0000 (12:57 +0000)
commita764ff77d697a4a13e69b3379cc613f7409c6b9a
tree85c15bedf4737a4b60e18a9d86438d5f2f999c4a
parent6fadec4c5561e2fbe1dfa8a7da9bc58d094a8f04
regulator: irq_helper: Provide helper for trivial IRQ notifications

Provide a generic map_event helper for regulators which have a notification
IRQ with single, well defined purpose. Eg, IRQ always indicates exactly one
event for exactly one regulator device. For such IRQs the mapping is
trivial.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link: https://lore.kernel.org/r/603b7ed1938013a00371c1e7ccc63dfb16982b87.1637736436.git.matti.vaittinen@fi.rohmeurope.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/irq_helpers.c
include/linux/regulator/driver.h