pinctrl: msm: Use dynamic GPIO numbering
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 29 Jan 2018 00:59:48 +0000 (16:59 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:41 +0000 (07:52 +0200)
commitbd36ea57d6d58041180c4f7d2c2bf5194c26845d
tree5175e5d1c48d404f63eaf7daf6a9fc5e60441c4f
parentbd1a6e338c1b644c52b1d6196f43cca87334a399
pinctrl: msm: Use dynamic GPIO numbering

[ Upstream commit a7aa75a2a7dba32594291a71c3704000a2fd7089 ]

The base of the TLMM gpiochip should not be statically defined as 0, fix
this to not artificially restrict the existence of multiple pinctrl-msm
devices.

Fixes: f365be092572 ("pinctrl: Add Qualcomm TLMM driver")
Reported-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/qcom/pinctrl-msm.c