pinctrl: Don't copy pin names when registering them
authorStephen Warren <swarren@nvidia.com>
Wed, 19 Oct 2011 22:19:27 +0000 (16:19 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 20 Oct 2011 09:50:06 +0000 (11:50 +0200)
commit9af1e44fb4a4c62a90bff9b095eb001764d91b65
treeee15dbb393b2805b0da4daeda4f0cfc931fe42ca
parent25aec320d993950474a065b59585e8dd006c3e18
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>
drivers/pinctrl/core.c
drivers/pinctrl/core.h