gpio: mcp23s08: Add support for level triggered interrupts
authorAlexander Stein <alexander.stein@systec-electronic.com>
Wed, 23 Mar 2016 17:01:27 +0000 (18:01 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 31 Mar 2016 08:41:50 +0000 (10:41 +0200)
commit16fe1ad289019d78a8f8fdb65f08d298ee921cb3
tree72891a503d0271a52ae54d6151df32d584d9dfa5
parent1418f9e6e02da2ad0a6aacc8645e6ad7496105e9
gpio: mcp23s08: Add support for level triggered interrupts

The interrupt for the corresponding pin is configured to trigger when the
pin state changes compared to a preconfigured state (Bit set in INTCON).
This state is set by setting/clearing the bit in DEFVAL.
In the interrupt handler we need also to check if the bit in INTCON is set
for level triggered interrupts.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mcp23s08.c