]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Sun, 18 Dec 2011 22:53:14 +0000 (23:53 +0100)
commit4c2363fb8b4c2ee145f75ef51d4106b147a9b7b5
tree7483fbdc4db119f9a8f013035005f374e729ffd0
parentb2b858e06c67311f7f504e0c0ebc3f4ac7f6e067
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>
Documentation/pinctrl.txt
drivers/pinctrl/core.c
drivers/pinctrl/core.h
drivers/pinctrl/pinconf.c
drivers/pinctrl/pinmux.c
include/linux/pinctrl/machine.h