mfd: da9062: Add support for interrupt polarity defined in device tree
authorShreyas Joshi <shreyasjoshi15@gmail.com>
Wed, 26 Feb 2020 01:07:22 +0000 (11:07 +1000)
committerLee Jones <lee.jones@linaro.org>
Mon, 30 Mar 2020 06:35:28 +0000 (07:35 +0100)
commitb1cc5409f08ef548db9cfc9e7b4fcbd07e32fae0
treee58e227988a6bc4165cb3bcbc8e311521805fc20
parenta045f3578e0c14edced021a8d38887008bc000b1
mfd: da9062: Add support for interrupt polarity defined in device tree

The da9062 interrupt handler cannot necessarily be low active.
Add a function to configure the interrupt type based on what is defined in the device tree.
The allowable interrupt type is either low or high level trigger.

Signed-off-by: Shreyas Joshi <shreyas.joshi@biamp.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/da9062-core.c