[PATCH] pinctrl: sunxi: fix pin numbers passed to register offset helpers

Linus Walleij linus.walleij at linaro.org
Tue May 27 02:27:38 PDT 2014


On Thu, May 22, 2014 at 5:20 PM, Chen-Yu Tsai <wens at csie.org> wrote:

> The pin numbers passed to sunxi_*_reg helpers to get the correct
> registers should be the pin offset for the PIO block, not the
> absolute number we use that is based on the alphanumeric labels
> Allwinner uses.
>
> This patch subtracts .pin_base from the pin number passed to these
> functions, so the driver accesses the correct registers.
>
> Signed-off-by: Chen-Yu Tsai <wens at csie.org>

Patch applied with Boris' and Maximes Reviewd/ACK tags.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list