pinctrl: qcom-spmi-mpp: Fix input value report
authorIvan T. Ivanov <ivan.ivanov@linaro.org>
Thu, 9 Apr 2015 15:18:37 +0000 (18:18 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Apr 2015 12:52:50 +0000 (14:52 +0200)
commit4e637ac212b63f4b5dd1da626aca34ffcbfd5daa
tree962103f5cd0461648830dcfe42d270393209f0ac
parentdc391502fdbf97a9cabdc58ba8c915175383f681
pinctrl: qcom-spmi-mpp: Fix input value report

Fix interpretation of the pmic_mpp_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-mpp.c