pinctrl: qcom: spmi-gpio: Correct power_source range check
authorFenglin Wu <fenglinw@codeaurora.org>
Wed, 19 Jul 2017 06:39:55 +0000 (14:39 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 31 Aug 2017 11:59:15 +0000 (13:59 +0200)
commit4e83ac4cfbde6b300f31f9460b96c67664a792ce
treeaf39129831c92e21770153ed87be6f1ce9e76fcb
parentae9d7f83a58d94380a05efd796da0373bcb9fb04
pinctrl: qcom: spmi-gpio: Correct power_source range check

Power source selection in DIG_VIN_CTL is indexed from 0, in the range
check it shouldn't be equal to the total number of power sources.

Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-spmi-gpio.c