pinctrl: imx5: start numbering pad from 0
authorShawn Guo <shawn.guo@linaro.org>
Mon, 13 Aug 2012 14:47:58 +0000 (22:47 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Sep 2012 11:21:37 +0000 (13:21 +0200)
commitd5fff72db1d7cf1161deed54f6be6d2c96f2ad80
treec514e1d86efdbff0e8755c01c75f4d18f8e01604
parentb9aa8f13eaaf65f6939c67920d2cda4399be1e2a
pinctrl: imx5: start numbering pad from 0

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@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-imx51.c
drivers/pinctrl/pinctrl-imx53.c