summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/core.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-10-19 22:19:27 (GMT)
committerLinus Walleij <linus.walleij@linaro.org>2011-10-20 09:50:06 (GMT)
commit9af1e44fb4a4c62a90bff9b095eb001764d91b65 (patch)
treeee15dbb393b2805b0da4daeda4f0cfc931fe42ca /drivers/pinctrl/core.h
parent25aec320d993950474a065b59585e8dd006c3e18 (diff)
downloadlinux-9af1e44fb4a4c62a90bff9b095eb001764d91b65.tar.xz
pinctrl: Don't copy pin names when registering them
A pin controller's names array is no longer marked __refdata. Hence, we can avoid copying a pin's name into the descriptor when registering it. Instead, just point at the string supplied in the pin array. This both simplifies and speeds up pin controller initialization, but also removes the hard-coded maximum pin name length. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/core.h')
-rw-r--r--drivers/pinctrl/core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/core.h b/drivers/pinctrl/core.h
index 17e0777..e431aa5 100644
--- a/drivers/pinctrl/core.h
+++ b/drivers/pinctrl/core.h
@@ -55,7 +55,7 @@ struct pinctrl_dev {
*/
struct pin_desc {
struct pinctrl_dev *pctldev;
- char name[16];
+ const char *name;
spinlock_t lock;
/* These fields only added when supporting pinmux drivers */
#ifdef CONFIG_PINMUX