aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sunxi/Kconfig
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2014-05-22 23:20:55 +0800
committerLinus Walleij <linus.walleij@linaro.org>2014-05-27 11:26:01 +0200
commitb4575c699882346c0c18e93bb5173c2689965c7b (patch)
tree45b0036476c6ef28dc9637fc9eba788306ab5e91 /drivers/pinctrl/sunxi/Kconfig
parentpinctrl: add pinctrl driver for imx6sx (diff)
downloadlinux-dev-b4575c699882346c0c18e93bb5173c2689965c7b.tar.xz
linux-dev-b4575c699882346c0c18e93bb5173c2689965c7b.zip
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>
Diffstat (limited to 'drivers/pinctrl/sunxi/Kconfig')
0 files changed, 0 insertions, 0 deletions