gpio: mcp23s08: Fix clearing of interrupt.
authorPhil Reid <preid@electromag.com.au>
Tue, 15 Mar 2016 07:46:30 +0000 (15:46 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 16 Mar 2016 12:41:59 +0000 (13:41 +0100)
commit3539699c03a6a349ffb8a2ac83ec40d6a981b2d6
tree269fe28556a1bff5e20abdf954e3ba10fd940117
parent1cfab8f8b397f7d95ad43f72ed9a1fa7d26e210e
gpio: mcp23s08: Fix clearing of interrupt.

The mcp23s18 is configurable on clearing the interrupt on either reading
INTCAP or GPIO. Since driver reads INTCAP in IRQ and not the GPIO reg need
to set control byte for this mode.

Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mcp23s08.c