diff options
author | Chen-Yu Tsai <wens@csie.org> | 2014-05-22 23:20:55 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-05-27 11:26:01 +0200 |
commit | b4575c699882346c0c18e93bb5173c2689965c7b (patch) | |
tree | 45b0036476c6ef28dc9637fc9eba788306ab5e91 /drivers/pinctrl/sunxi/Kconfig | |
parent | 2cc140fe360732bc5467df3ad932685c76078dd4 (diff) | |
download | op-kernel-dev-b4575c699882346c0c18e93bb5173c2689965c7b.zip op-kernel-dev-b4575c699882346c0c18e93bb5173c2689965c7b.tar.gz |
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