]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: core device tree mapping table parsing support
authorStephen Warren <swarren@wwwdotorg.org>
Fri, 23 Mar 2012 16:29:46 +0000 (10:29 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Apr 2012 11:53:10 +0000 (13:53 +0200)
commitf395ed2c1482eafa3a59630768c30c4a3ee363a8
tree6e687f329e7adf08b5d7dcaa3d6616ff1a9b8c27
parent5551cb1b3b93e2a0371ae433ace9a31ca5de450f
pinctrl: core device tree mapping table parsing support

During pinctrl_get(), if the client device has a device tree node, look
for the common pinctrl properties there. If found, parse the referenced
device tree nodes, with the help of the pinctrl drivers, and generate
mapping table entries from them.

During pinctrl_put(), free any results of device tree parsing.

Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/Makefile
drivers/pinctrl/core.c
drivers/pinctrl/core.h
drivers/pinctrl/devicetree.c [new file with mode: 0644]
drivers/pinctrl/devicetree.h [new file with mode: 0644]
include/linux/pinctrl/pinctrl.h