summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib.h
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2014-07-22 09:17:41 +0200
committerLinus Walleij <linus.walleij@linaro.org>2014-07-23 17:41:12 +0200
commit1bd6b601fe196b6fbce2c93536ce0f3f53577cec (patch)
tree5e20cf3705cbb6f311a4b26795cbd7e4c8a14f11 /drivers/gpio/gpiolib.h
parentgpio: simplify gpiochip_export() (diff)
downloadlinux-1bd6b601fe196b6fbce2c93536ce0f3f53577cec.tar.xz
linux-1bd6b601fe196b6fbce2c93536ce0f3f53577cec.zip
gpio: make gpiochip_get_desc() gpiolib-private
As GPIO descriptors are not going to remain unique anymore, having this function public is not safe. Restrain its use to gpiolib since we have no user outside of it. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib.h')
-rw-r--r--drivers/gpio/gpiolib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h
index 98020c393eb3..acbb9335f08c 100644
--- a/drivers/gpio/gpiolib.h
+++ b/drivers/gpio/gpiolib.h
@@ -51,6 +51,8 @@ void gpiochip_free_own_desc(struct gpio_desc *desc);
struct gpio_desc *of_get_named_gpiod_flags(struct device_node *np,
const char *list_name, int index, enum of_gpio_flags *flags);
+struct gpio_desc *gpiochip_get_desc(struct gpio_chip *chip, u16 hwnum);
+
extern struct spinlock gpio_lock;
extern struct list_head gpio_chips;