[PATCH 2/2] pinctrl: sunxi: number gpio ranges starting from 0

Linus Walleij linus.walleij at linaro.org
Mon Jul 28 03:14:19 PDT 2014


On Mon, Jul 14, 2014 at 7:24 PM, Chen-Yu Tsai <wens at csie.org> wrote:

> The pinctrl-sunxi driver originally used the pin number as the gpio
> range offset. This resulted in large, bogus gpio numbers for the
> new sun6i-a31-r pinctrl devices.
>
> This patch makes the driver number the gpios ranges starting from an
> offset of 0, by subtracting the pin_base number from the pin number.
> This also makes the system-wide gpio number match the pin number.
>
> Tested on sun8i with sysfs exported gpios.
>
> Signed-off-by: Chen-Yu Tsai <wens at csie.org>

Patch applied with Maxime's ACK.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list