[PATCH] pinctrl: imx5: start numbering pad from 0

Linus Walleij linus.walleij at linaro.org
Tue Aug 14 04:13:12 EDT 2012


On Mon, Aug 13, 2012 at 4:47 PM, Shawn Guo <shawn.guo at linaro.org> wrote:

> Unlike imx6q pinctrl driver that starts nubmering pad from 0, imx5
> pinctrl drivers number pad from 1.  It causes problem/confusion when
> driver accesses imx51_pinctrl_pads array using pin ID as the index.
>
> Change imx51_pads and imx53_pads numbering start from 0.
>
> Signed-off-by: Shawn Guo <shawn.guo at linaro.org>

Looks like a good idea.

Since I just merged the imx53 driver which *again* start numbering on
1, can I have a patch that fixes that driver also?

Uwe, you OK with this?

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list