diff options
author | Haojian Zhuang <haojian.zhuang@linaro.org> | 2013-01-18 15:31:06 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-01-21 15:14:39 +0100 |
commit | d6e99abb424a916ecbb127dba065a379b460a062 (patch) | |
tree | 278e646d123b34404e76e71a252aa8391dfd12fb /include/linux/pinctrl | |
parent | 32e67eee670e1254ee5ab41e2f454680acb9c17c (diff) | |
download | linux-stable-d6e99abb424a916ecbb127dba065a379b460a062.tar.gz linux-stable-d6e99abb424a916ecbb127dba065a379b460a062.tar.bz2 linux-stable-d6e99abb424a916ecbb127dba065a379b460a062.zip |
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>
Diffstat (limited to 'include/linux/pinctrl')
-rw-r--r-- | include/linux/pinctrl/pinctrl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h index 04d6700d99af..778804df293f 100644 --- a/include/linux/pinctrl/pinctrl.h +++ b/include/linux/pinctrl/pinctrl.h @@ -154,6 +154,7 @@ struct pinctrl_dev *of_pinctrl_get(struct device_node *np) #endif /* CONFIG_OF */ extern const char *pinctrl_dev_get_name(struct pinctrl_dev *pctldev); +extern const char *pinctrl_dev_get_devname(struct pinctrl_dev *pctldev); extern void *pinctrl_dev_get_drvdata(struct pinctrl_dev *pctldev); #else |