pinctrl: qcom: Clear all function selection bits
authorStephen Boyd <stephen.boyd@linaro.org>
Sun, 26 Jun 2016 05:21:31 +0000 (22:21 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Jun 2016 08:13:44 +0000 (10:13 +0200)
commit47a01ee9a6c39fe1f5b14f5d88f6591baeb03e95
tree3bf755410b9a02b7f760359b1061d9afaa0a7128
parentcdd5b3485cd59cb7d9004874d2ac99522da5e624
pinctrl: qcom: Clear all function selection bits

The function selection bitfield is not always 3 bits wide.
Sometimes it is 4 bits wide. Let's use the npins struct member to
determine how many bits wide the function selection bitfield is
so we clear the correct amount of bits in the register while
remuxing the pins.

Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-msm.c