pinctrl: establish pull-up/pull-down terminology
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 16 Jun 2013 10:43:06 +0000 (12:43 +0200)
committer黄涛 <huangtao@rock-chips.com>
Sat, 30 Nov 2013 04:37:34 +0000 (12:37 +0800)
commit19e31d82ddfd06c6527617896dfedb7e233de638
tree25eb2dd2b3951fa495b9902f0b38e6e86d4cb77a
parentdc03e310a6ae274d7b941c52899dffeeb58d464f
pinctrl: establish pull-up/pull-down terminology

It is counter-intuitive to have "0" mean disable in a boolean
manner for electronic properties of pins such as pull-up and
pull-down. Therefore, define that a pull-up/pull-down argument
of 0 to such a generic option means that the pin is
short-circuited to VDD or GROUND. Pull disablement shall be
done using PIN_CONFIG_BIAS_DISABLE.

Cc: James Hogan <james.hogan@imgtec.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by Heiko Stuebner <heiko@sntech.de>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/pinctrl/pinconf-generic.h