]> asedeno.scripts.mit.edu Git - linux.git/commit
extcon: gpio: Convert to fully use GPIO descriptor
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 12 Feb 2018 08:53:14 +0000 (09:53 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 21 Mar 2018 04:58:09 +0000 (13:58 +0900)
commitd368e7de5e8bac32a9121608a7d4c96a229d5af2
treebaaaeb8e49500e1bd82beea80a5f3444b7930d7f
parenta62300d99f15c4be7edafbbc2ade0246ec853778
extcon: gpio: Convert to fully use GPIO descriptor

Since we are not getting the GPIO from any platform data and global
GPIO numberspace, we simply get the named "extcon" GPIO directly from
the device. Cut away "active low" since GPIO descriptors already know
if the line is active high or low. Simplify a bit with a
struct device *dev helper variable in probe() and cut the complex
init() function.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-gpio.c