linux-stable/drivers/pinctrl
Stephen Warren 46919ae63d pinctrl: introduce PINCTRL_STATE_DEFAULT, define hogs as that state
This provides a single centralized name for the default state.

Update PIN_MAP_* macros to use this state name, instead of requiring the
user to pass a state name in.

With this change, hog entries in the mapping table are defined as those
with state name PINCTRL_STATE_DEFAULT, i.e. all entries have the same
name. This interacts badly with the nested iteration over mapping table
entries in pinctrl_hog_maps() and pinctrl_hog_map() which would now
attempt to claim each hog mapping table entry multiple times. Replacing
the custom hog code with a simple pinctrl_get()/pinctrl_enable().

Update documentation and mapping tables to use this.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2012-03-02 16:18:24 +01:00
..
core.c pinctrl: introduce PINCTRL_STATE_DEFAULT, define hogs as that state 2012-03-02 16:18:24 +01:00
core.h pinctrl: introduce PINCTRL_STATE_DEFAULT, define hogs as that state 2012-03-02 16:18:24 +01:00
Kconfig pinctrl: enable pinmux for mmp series 2012-02-01 19:42:35 +01:00
Makefile pinctrl: enable pinmux for mmp series 2012-02-01 19:42:35 +01:00
pinconf.c pinctrl: fix pinconf_groups_show() to emit newline 2012-02-22 18:42:00 +01:00
pinconf.h pinctrl: Re-order pinconf.[ch] to match each-other 2012-02-22 17:59:32 +01:00
pinctrl-coh901.c pinctrl: spawn U300 pinctrl from the COH901 GPIO 2012-02-22 17:59:33 +01:00
pinctrl-mmp2.c pinctrl: enable pinmux for mmp series 2012-02-01 19:42:35 +01:00
pinctrl-pxa3xx.c pinctrl: enable pinmux for mmp series 2012-02-01 19:42:35 +01:00
pinctrl-pxa3xx.h pinctrl: enable pinmux for mmp series 2012-02-01 19:42:35 +01:00
pinctrl-pxa168.c pinctrl: enable pinmux for mmp series 2012-02-01 19:42:35 +01:00
pinctrl-pxa910.c pinctrl: enable pinmux for mmp series 2012-02-01 19:42:35 +01:00
pinctrl-sirf.c pinctrl: remove unnecessary max pin number 2012-01-03 09:10:09 +01:00
pinctrl-u300.c pinctrl: spawn U300 pinctrl from the COH901 GPIO 2012-02-22 17:59:33 +01:00
pinmux.c pinctrl: enhance pinctrl_get() to handle multiple functions 2012-03-02 16:12:03 +01:00
pinmux.h pinctrl: enhance pinctrl_get() to handle multiple functions 2012-03-02 16:12:03 +01:00