aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/pinctrl.txt
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-12-15 18:57:17 -0500
committerLinus Walleij <linus.walleij@linaro.org>2012-01-03 03:10:07 -0500
commit43699dea1ea21a0d5786317a794cb2ba27a6f4fe (patch)
tree6a1f26cce9cfe04ac93cd62005c14759722ffb74 /Documentation/pinctrl.txt
parent63fd5984a9b2214cba7dd7dd7b5a75cf40dde39f (diff)
pinctrl: pass name instead of device to pin_config_*
Obtaining a "struct pinctrl_dev *" is difficult for code not directly related to the pinctrl subsystem. However, the device name of the pinctrl device is fairly well known. So, modify pin_config_*() to take the device name instead of the "struct pinctrl_dev *". Signed-off-by: Stephen Warren <swarren@nvidia.com> [rebased on top of refactoring code] Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation/pinctrl.txt')
-rw-r--r--Documentation/pinctrl.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/pinctrl.txt b/Documentation/pinctrl.txt
index f08064368291..44321d3227e8 100644
--- a/Documentation/pinctrl.txt
+++ b/Documentation/pinctrl.txt
@@ -208,7 +208,7 @@ unconnected.
208 208
209For example, a platform may do this: 209For example, a platform may do this:
210 210
211ret = pin_config_set(dev, "FOO_GPIO_PIN", PLATFORM_X_PULL_UP); 211ret = pin_config_set("foo-dev", "FOO_GPIO_PIN", PLATFORM_X_PULL_UP);
212 212
213To pull up a pin to VDD. The pin configuration driver implements callbacks for 213To pull up a pin to VDD. The pin configuration driver implements callbacks for
214changing pin configuration in the pin controller ops like this: 214changing pin configuration in the pin controller ops like this: