diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-11-22 10:09:37 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-11-25 09:01:33 +0100 |
commit | bb7929aaaacd9e154b18bfcedd5c8e2150233d6d (patch) | |
tree | 3e99a499350d27cebc0afdcd8c07c49273ac38d4 /include/of_gpio.h | |
parent | 9adc411ce2f93939acd370040d43990bed08a6de (diff) | |
download | barebox-bb7929aaaacd9e154b18bfcedd5c8e2150233d6d.tar.gz barebox-bb7929aaaacd9e154b18bfcedd5c8e2150233d6d.tar.xz |
of: gpio: Add Kconfig variable to depend on
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/of_gpio.h')
-rw-r--r-- | include/of_gpio.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/of_gpio.h b/include/of_gpio.h index 50536a8a38..d42b18e63f 100644 --- a/include/of_gpio.h +++ b/include/of_gpio.h @@ -21,11 +21,11 @@ enum of_gpio_flags { OF_GPIO_ACTIVE_LOW = 0x1, }; -#ifdef CONFIG_OFTREE +#ifdef CONFIG_OF_GPIO extern int of_get_named_gpio_flags(struct device_node *np, const char *list_name, int index, enum of_gpio_flags *flags); -#else /* CONFIG_OFTREE */ +#else /* CONFIG_OF_GPIO */ static inline int of_get_named_gpio_flags(struct device_node *np, const char *list_name, int index, enum of_gpio_flags *flags) @@ -33,7 +33,7 @@ static inline int of_get_named_gpio_flags(struct device_node *np, return -ENOSYS; } -#endif /* CONFIG_OFTREE */ +#endif /* CONFIG_OF_GPIO */ static inline int of_get_named_gpio(struct device_node *np, const char *list_name, int index) |