pinctrl: core: get devname from pinctrl_dev
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Fri, 18 Jan 2013 07:31:06 +0000 (15:31 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 21 Jan 2013 14:14:39 +0000 (15:14 +0100)
commitd6e99abb424a916ecbb127dba065a379b460a062
tree278e646d123b34404e76e71a252aa8391dfd12fb
parent32e67eee670e1254ee5ab41e2f454680acb9c17c
pinctrl: core: get devname from pinctrl_dev

Add new function to get devname from pinctrl_dev. pinctrl_dev_get_name()
can only get pinctrl description name. If we want to use gpio driver to
find pinctrl device node, we need to fetch the pinctrl device name.

Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c
include/linux/pinctrl/pinctrl.h