gpio: stmpe: fix up interrupt enable logic
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 2 Oct 2014 05:55:27 +0000 (07:55 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 2 Oct 2014 07:19:22 +0000 (09:19 +0200)
commit1fe3bd9e347bcea63fa8be212001372720968765
treef028fb2da2e31b2caf39417a9fc2b2f23612b5f0
parentafdadc06df68861ee7b9ed1699a44516532f545e
gpio: stmpe: fix up interrupt enable logic

The STMPE driver assumes that the passed in IRQ type is
for rising or falling IRQs, not both, even though the
hardware actually supports this perfectly well. Likewise
the check for level IRQs is done against just high or low
level types, not for the case where it is combined with
other IRQs.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-stmpe.c