diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2012-02-01 12:02:47 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-02-01 13:42:35 -0500 |
commit | 9dfac4fd7f8cdcdf734dff2ccc7ca467f53f1cfd (patch) | |
tree | 6a9ee37b2aac4b288c85387d83310e5f9cd9108e /drivers/pinctrl/pinconf.c | |
parent | 8dc6ae4d448758a30cf5fa822d6fe6f4e15a04c6 (diff) |
pinctrl: delete raw device pointers in pinmux maps
After discussion with Mark Brown in an unrelated thread about
ADC lookups, it came to my knowledge that the ability to pass
a struct device * in the regulator consumers is just a
historical artifact, and not really recommended. Since there
are no in-kernel users of these pointers, we just kill them
right now, before someone starts to use them.
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinconf.c')
-rw-r--r-- | drivers/pinctrl/pinconf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pinctrl/pinconf.c b/drivers/pinctrl/pinconf.c index 9fb75456824c..b74f64af1923 100644 --- a/drivers/pinctrl/pinconf.c +++ b/drivers/pinctrl/pinconf.c | |||
@@ -51,7 +51,7 @@ int pin_config_get(const char *dev_name, const char *name, | |||
51 | struct pinctrl_dev *pctldev; | 51 | struct pinctrl_dev *pctldev; |
52 | int pin; | 52 | int pin; |
53 | 53 | ||
54 | pctldev = get_pinctrl_dev_from_dev(NULL, dev_name); | 54 | pctldev = get_pinctrl_dev_from_devname(dev_name); |
55 | if (!pctldev) | 55 | if (!pctldev) |
56 | return -EINVAL; | 56 | return -EINVAL; |
57 | 57 | ||
@@ -99,7 +99,7 @@ int pin_config_set(const char *dev_name, const char *name, | |||
99 | struct pinctrl_dev *pctldev; | 99 | struct pinctrl_dev *pctldev; |
100 | int pin; | 100 | int pin; |
101 | 101 | ||
102 | pctldev = get_pinctrl_dev_from_dev(NULL, dev_name); | 102 | pctldev = get_pinctrl_dev_from_devname(dev_name); |
103 | if (!pctldev) | 103 | if (!pctldev) |
104 | return -EINVAL; | 104 | return -EINVAL; |
105 | 105 | ||
@@ -118,7 +118,7 @@ int pin_config_group_get(const char *dev_name, const char *pin_group, | |||
118 | const struct pinconf_ops *ops; | 118 | const struct pinconf_ops *ops; |
119 | int selector; | 119 | int selector; |
120 | 120 | ||
121 | pctldev = get_pinctrl_dev_from_dev(NULL, dev_name); | 121 | pctldev = get_pinctrl_dev_from_devname(dev_name); |
122 | if (!pctldev) | 122 | if (!pctldev) |
123 | return -EINVAL; | 123 | return -EINVAL; |
124 | ops = pctldev->desc->confops; | 124 | ops = pctldev->desc->confops; |
@@ -151,7 +151,7 @@ int pin_config_group_set(const char *dev_name, const char *pin_group, | |||
151 | int ret; | 151 | int ret; |
152 | int i; | 152 | int i; |
153 | 153 | ||
154 | pctldev = get_pinctrl_dev_from_dev(NULL, dev_name); | 154 | pctldev = get_pinctrl_dev_from_devname(dev_name); |
155 | if (!pctldev) | 155 | if (!pctldev) |
156 | return -EINVAL; | 156 | return -EINVAL; |
157 | ops = pctldev->desc->confops; | 157 | ops = pctldev->desc->confops; |