]> 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>
Mon, 12 Dec 2011 12:53:42 +0000 (13:53 +0100)
commit4cea6912c63118b6dbfb5c27a7e5d5b33f3a759a
tree0a57ae6c7b1836713281a7b433fd948c494c8508
parent2b613a08a7229f1584f07f131dd2ffecc68c3a1a
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