]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pinctrl: pass name instead of device to pin_config_*
authorStephen Warren <swarren@nvidia.com>
Thu, 15 Dec 2011 23:57:17 +0000 (16:57 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 18 Dec 2011 23:05:07 +0000 (00:05 +0100)
commit338f75a8b9fcad6b2ec491449f8e9a565064ded5
tree6a1f26cce9cfe04ac93cd62005c14759722ffb74
parent10a132419802f2992b77bbbeeb842d8513cf1f5a
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>
Documentation/pinctrl.txt
drivers/pinctrl/pinconf.c
include/linux/pinctrl/pinconf.h