]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfd7f84e9876f3b7fa95afa63d08332ff37fbebce
tree269fe28556a1bff5e20abdf954e3ba10fd940117
parent5a31ccdac9076a39e96a766f178b0646b96f7da3
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