diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2012-02-09 19:34:12 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-02-10 15:33:10 -0500 |
commit | 77a5988355f993840928d195f790a939200a4ff0 (patch) | |
tree | b2590450fb4c5e956ddfc119e6bb610ce53aa8a9 /Documentation/pinctrl.txt | |
parent | befe5bdfbb698b3bc57c58d0bd7ca3391c9275ed (diff) |
pinctrl: changes hog mechanism to be self-referential
Instead of a specific boolean field to indicate if a map entry shall
be hogged, treat self-reference as an indication of desired hogging.
This drops one field off the map struct and has a nice Douglas R.
Hofstadter-feel to it.
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation/pinctrl.txt')
-rw-r--r-- | Documentation/pinctrl.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/pinctrl.txt b/Documentation/pinctrl.txt index 2e7132355db8..ee3266b948e7 100644 --- a/Documentation/pinctrl.txt +++ b/Documentation/pinctrl.txt | |||
@@ -989,21 +989,21 @@ is registered. This means that the core will attempt to call pinctrl_get() and | |||
989 | pinctrl_enable() on it immediately after the pin control device has been | 989 | pinctrl_enable() on it immediately after the pin control device has been |
990 | registered. | 990 | registered. |
991 | 991 | ||
992 | This is enabled by simply setting the .hog_on_boot field in the map to true, | 992 | This is enabled by simply setting the .dev_name field in the map to the name |
993 | like this: | 993 | of the pin controller itself, like this: |
994 | 994 | ||
995 | { | 995 | { |
996 | .name = "POWERMAP" | 996 | .name = "POWERMAP" |
997 | .ctrl_dev_name = "pinctrl-foo", | 997 | .ctrl_dev_name = "pinctrl-foo", |
998 | .function = "power_func", | 998 | .function = "power_func", |
999 | .hog_on_boot = true, | 999 | .dev_name = "pinctrl-foo", |
1000 | }, | 1000 | }, |
1001 | 1001 | ||
1002 | Since it may be common to request the core to hog a few always-applicable | 1002 | Since it may be common to request the core to hog a few always-applicable |
1003 | mux settings on the primary pin controller, there is a convenience macro for | 1003 | mux settings on the primary pin controller, there is a convenience macro for |
1004 | this: | 1004 | this: |
1005 | 1005 | ||
1006 | PIN_MAP_PRIMARY_SYS_HOG("POWERMAP", "power_func") | 1006 | PIN_MAP_PRIMARY_SYS_HOG("POWERMAP", "pinctrl-foo", "power_func") |
1007 | 1007 | ||
1008 | This gives the exact same result as the above construction. | 1008 | This gives the exact same result as the above construction. |
1009 | 1009 | ||