]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Fri, 28 Oct 2011 19:41:17 +0000 (21:41 +0200)
commit5f2cdb596c830a02ae89c1d33a9a318846877be2
tree4da9b2b3ac77916bbfe3fc68c73118db9e9e2354
parent28b0030cd22527dc8e405e61054f8d3d48f0a7cb
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