pinctrl: establish pull-up/pull-down terminology
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 16 Jun 2013 10:43:06 +0000 (12:43 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Jun 2013 16:18:32 +0000 (18:18 +0200)
commit5ca3353bcee929c3b7bbf39f79038842f443f01a
treeb9ca8539bef9bf05e6a170e25f5b243c49201d96
parent6abab2d4bec982bcefbe99201ddee5f25227daf4
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