]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: sunxi: Fix PIN_CONFIG_BIAS_PULL_{DOWN,UP} argument
authorChen-Yu Tsai <wens@csie.org>
Fri, 11 Nov 2016 09:50:34 +0000 (17:50 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 15 Nov 2016 09:17:45 +0000 (10:17 +0100)
commit251bc5a22e696998b165919b3c4776f88c180a2d
treef573d75e2f553d9148fd6c95f5d550a319e50bf3
parentf50521209d3fe41a9645b453278ebb2da3f1b90e
pinctrl: sunxi: Fix PIN_CONFIG_BIAS_PULL_{DOWN,UP} argument

According to pinconf-generic.h, the argument for
PIN_CONFIG_BIAS_PULL_{DOWN,UP} is non-zero if the bias is enabled
with a pull up/down resistor, zero if it is directly connected
to VDD or ground.

Since Allwinner hardware uses a weak pull resistor internally,
the argument should be 1.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sunxi.c