2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 05:34:00 +08:00
linux-next/include/linux/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
..
consumer.h pinctrl: factor pin control handles over to the core 2012-02-10 21:33:06 +01:00
machine.h pinctrl: introduce PINCTRL_STATE_DEFAULT, define hogs as that state 2012-03-02 16:18:24 +01:00
pinconf.h pinctrl: break out a pinctrl consumer header 2012-02-10 21:32:57 +01:00
pinctrl.h pinctrl: introduce PINCTRL_STATE_DEFAULT, define hogs as that state 2012-03-02 16:18:24 +01:00
pinmux.h pinctrl: break out a pinctrl consumer header 2012-02-10 21:32:57 +01:00