]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pinctrl: qcom-spmi-gpio: Fix input value report
authorIvan T. Ivanov <ivan.ivanov@linaro.org>
Thu, 9 Apr 2015 15:18:36 +0000 (18:18 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Apr 2015 12:51:45 +0000 (14:51 +0200)
commit24a66618d63548e1012bf65ed30a3c031f410ca2
tree57b8dc804e41f821fe51fb1ac45b287e397f0dab
parent982df6aec06479c844f46f7a5cc960151f8fc005
pinctrl: qcom-spmi-gpio: Fix input value report

Read input buffer when input is enabled, not when it is
disabled. Also fix interpretation of the pmic_gpio_read()
return code, negative value means an error.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-spmi-gpio.c