linux_old1/drivers/pinctrl/sunxi
Chen-Yu Tsai b4575c6998 pinctrl: sunxi: fix pin numbers passed to register offset helpers
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@csie.org>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2014-05-27 11:26:01 +02:00
..
Kconfig pinctrl: sunxi: Fix recursive dependency 2014-05-23 00:35:16 +02:00
Makefile pinctrl: sunxi: Fix recursive dependency 2014-05-23 00:35:16 +02:00
pinctrl-sun4i-a10.c pinctrl: sunxi: Move Allwinner A10 pinctrl driver to a driver of its own 2014-05-04 00:03:28 -07:00
pinctrl-sun5i-a10s.c pinctrl: sunxi: Move Allwinner A10s pinctrl driver to a driver of its own 2014-05-04 00:03:29 -07:00
pinctrl-sun5i-a13.c pinctrl: sunxi: Move Allwinner A13 pinctrl driver to a driver of its own 2014-05-04 00:03:29 -07:00
pinctrl-sun6i-a31-r.c pinctrl: sunxi: Move the reset handling functions out of the core 2014-05-04 19:57:18 -05:00
pinctrl-sun6i-a31.c pinctrl: sunxi: Move Allwinner A31 pinctrl driver to a driver of its own 2014-05-04 00:03:30 -07:00
pinctrl-sun7i-a20.c pinctrl: sunxi: Move Allwinner A20 pinctrl driver to a driver of its own 2014-05-04 00:04:49 -07:00
pinctrl-sunxi.c pinctrl: sunxi: fix pin numbers passed to register offset helpers 2014-05-27 11:26:01 +02:00
pinctrl-sunxi.h pinctrl: sunxi: Libraryse the driver 2014-05-04 00:03:24 -07:00