summaryrefslogtreecommitdiff
path: root/drivers/extcon/extcon-sm5502.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2019-05-30 20:39:32 +0200
committerChanwoo Choi <cw00.choi@samsung.com>2019-07-24 19:20:19 +0900
commit8bc4810b435a3338346efd70e94c4d6fd0863635 (patch)
tree3cd5e74df0e1e47838cf2b9a8f0e4a3d48c3672d /drivers/extcon/extcon-sm5502.c
parent7d2b02275e89d564ddb0ace09ef4aa9e2ac2973d (diff)
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>
Diffstat (limited to 'drivers/extcon/extcon-sm5502.c')
0 files changed, 0 insertions, 0 deletions