summaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2018-02-12 09:53:14 +0100
committerChanwoo Choi <cw00.choi@samsung.com>2018-03-21 13:58:09 +0900
commitd368e7de5e8bac32a9121608a7d4c96a229d5af2 (patch)
treebaaaeb8e49500e1bd82beea80a5f3444b7930d7f /drivers/extcon/extcon.c
parenta62300d99f15c4be7edafbbc2ade0246ec853778 (diff)
downloadop-kernel-dev-d368e7de5e8bac32a9121608a7d4c96a229d5af2.zip
op-kernel-dev-d368e7de5e8bac32a9121608a7d4c96a229d5af2.tar.gz
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>
Diffstat (limited to 'drivers/extcon/extcon.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud