]> 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)
commit3501b57b2b5742efcf63bd11c9e60b7980266df9
tree6e687f329e7adf08b5d7dcaa3d6616ff1a9b8c27
parentc3de4fa507c58dcb73f3fd2f36611ce97cdcb50b
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