diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-10-03 10:59:32 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-10-03 23:38:11 +0200 |
commit | f4c1181f0fdeab19fb0b656abfb41bee7ca080b8 (patch) | |
tree | b2249d06e84add71fc8bc9c94b02ab1c875219d4 /include/linux/of_gpio.h | |
parent | gpio: acpi: separation of concerns (diff) | |
download | linux-f4c1181f0fdeab19fb0b656abfb41bee7ca080b8.tar.xz linux-f4c1181f0fdeab19fb0b656abfb41bee7ca080b8.zip |
gpio: OF: localize some gpiochip init functions
of_gpiochip_add() and of_gpiochip_remove() are only used locally
in the gpio subsystem so move these functions to the local
header.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to '')
-rw-r--r-- | include/linux/of_gpio.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/of_gpio.h b/include/linux/of_gpio.h index 092186c62ff4..3f87ea5b8bee 100644 --- a/include/linux/of_gpio.h +++ b/include/linux/of_gpio.h @@ -61,8 +61,6 @@ static inline int of_mm_gpiochip_add(struct device_node *np, } extern void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc); -extern int of_gpiochip_add(struct gpio_chip *gc); -extern void of_gpiochip_remove(struct gpio_chip *gc); extern int of_gpio_simple_xlate(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags); @@ -86,9 +84,6 @@ static inline int of_gpio_simple_xlate(struct gpio_chip *gc, return -ENOSYS; } -static inline int of_gpiochip_add(struct gpio_chip *gc) { return 0; } -static inline void of_gpiochip_remove(struct gpio_chip *gc) { } - #endif /* CONFIG_OF_GPIO */ /** |