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)
commit79890c2ec4860c3b715f89248c51abcc76a1fa39
treed90d8d1e9198ba847a0415253cf7a5071f782d4b
parentde744e01aa3af421470eb9725574e3cbce319053
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