extcon: gpio: Request reasonable interrupts
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 30 May 2019 18:39:32 +0000 (20:39 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 24 Jul 2019 10:20:19 +0000 (19:20 +0900)
commit8bc4810b435a3338346efd70e94c4d6fd0863635
tree3cd5e74df0e1e47838cf2b9a8f0e4a3d48c3672d
parent7d2b02275e89d564ddb0ace09ef4aa9e2ac2973d
extcon: gpio: Request reasonable interrupts

The only thing that makes sense is to request a falling edge interrupt
if the line is active low and a rising edge interrupt if the line is
active high, so just do that and get rid of the assignment from
platform data. The GPIO descriptor knows if the line is active high
or low.

Also make irq a local variable in probe(), it's not used anywhere else.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
[cw00.choi: Fix build error of data->irq_flags]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-gpio.c