]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pinctrl: imx25: fix numbering for pins
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 27 Jan 2015 23:45:56 +0000 (00:45 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 24 Mar 2015 01:02:53 +0000 (21:02 -0400)
commit71a2b6dff6de85e60a1b9042aada125c69acff03
treeae4fe88fdf7787b856ae9deac661775bf3c6ea95
parent248f2c55b4369308e90db4ab8e3f71d187fa441c
pinctrl: imx25: fix numbering for pins

commit 34027ca2bbc6043fea8fc5c4a82670518b6be7df upstream.

The pin id for a given tuple listed in a fsl,pins property is calculated
by dividing the first entry (which is also a register offset) by 4.
As the first available register is at offset 0x8 and configures the pad
MX25_PAD_A10 the right id for this pin is 2. All other pins are off by
one, too.

This patch drops the definition MX25_PAD_RESERVE1 (together with its
only use) and decrements all following values by 1.

Fixes: b4a87c9b966f ("pinctrl: pinctrl-imx: add imx25 pinctrl driver")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/freescale/pinctrl-imx25.c