pinctrl: don't create a device for each pin controller
authorStephen Warren <swarren@nvidia.com>
Fri, 9 Dec 2011 23:59:05 +0000 (16:59 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 3 Jan 2012 08:10:06 +0000 (09:10 +0100)
commit51cd24ee625c348654114032499914d0311e5832
tree7483fbdc4db119f9a8f013035005f374e729ffd0
parent528b78306ecf82af06c4862aa5518643fe20a440
pinctrl: don't create a device for each pin controller

Pin controllers should already be instantiated as a device, so there's
no need for the pinctrl core to create a new struct device for each
controller.

This allows the controller's real name to be used in the mux mapping
table, rather than e.g. "pinctrl.0", "pinctrl.1", etc.

This necessitates removal of the PINMUX_MAP_PRIMARY*() macros, since
their sole purpose was to hard-code the .ctrl_dev_name field to be
"pinctrl.0".

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/pinctrl.txt
drivers/pinctrl/core.c
drivers/pinctrl/core.h
drivers/pinctrl/pinconf.c
drivers/pinctrl/pinmux.c
include/linux/pinctrl/machine.h