Re: [PATCH 1/2] pinctrl: qcom: Clear all function selection bits

2016-06-29 Thread Linus Walleij
On Sun, Jun 26, 2016 at 7:21 AM, Stephen Boyd wrote: > 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 r

[PATCH 1/2] pinctrl: qcom: Clear all function selection bits

2016-06-25 Thread Stephen Boyd
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 Signed-o