regmap: regmap-irq/gpio-max77620: add level-irq support
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Tue, 18 Dec 2018 11:59:31 +0000 (13:59 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 19 Dec 2018 18:35:45 +0000 (18:35 +0000)
commit1c2928e3e3212252b505b746ec10951027a95813
tree210803e83222845fa5461b97aef044fcac39cc2a
parent84267d1b18abee0c141553396f52a23db71660d3
regmap: regmap-irq/gpio-max77620: add level-irq support

Add level active IRQ support to regmap-irq irqchip. Change breaks
existing regmap-irq type setting. Convert the existing drivers which
use regmap-irq with trigger type setting (gpio-max77620) to work
with this new approach. So we do not magically support level-active
IRQs on gpio-max77620 - but add support to the regmap-irq for chips
which support them =)

We do not support distinguishing situation where HW supports rising
and falling edge detection but not both. Separating this would require
inventing yet another flags for IRQ types.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-irq.c
drivers/gpio/gpio-max77620.c
include/linux/regmap.h