]> git.baikalelectronics.ru Git - kernel.git/commit
qcom: ssbi-gpio: correct boundary conditions in pm8xxx_domain_translate
authorBrian Masney <masneyb@onstation.org>
Thu, 14 Feb 2019 01:36:41 +0000 (20:36 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 14 Feb 2019 09:03:04 +0000 (10:03 +0100)
commitca5b6ecf56af32160040c825fecdf5c0b5078e7f
treed90d8d1e9198ba847a0415253cf7a5071f782d4b
parentc148eba659f7d8ebd7116f560ba04f281e895fb0
qcom: ssbi-gpio: correct boundary conditions in pm8xxx_domain_translate

SSBI GPIOs are numbered 1..ngpio, so the boundary check in
pm8xxx_domain_translate() is off by one. This patch corrects that check.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c