]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
gpio: export add/remove lookup table functions
authorAnatolij Gustschin <agust@denx.de>
Thu, 20 Apr 2017 21:23:20 +0000 (23:23 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 22 May 2017 08:57:47 +0000 (10:57 +0200)
For hot-pluggable devices adding GPIOs dynamically we need to
assemble and add the gpio lookup tables at probe time in modules,
so that requesting these GPIOs in attached drivers can work.
Export lookup table functions for modules.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c

index 5db44139cef8ca93af47b18f03c50b28b8893c8c..995ca9cf7dbf8bcbba297d7497c1dd3fcefa2286 100644 (file)
@@ -3008,6 +3008,7 @@ void gpiod_add_lookup_table(struct gpiod_lookup_table *table)
 
        mutex_unlock(&gpio_lookup_lock);
 }
+EXPORT_SYMBOL_GPL(gpiod_add_lookup_table);
 
 /**
  * gpiod_remove_lookup_table() - unregister GPIO device consumers
@@ -3021,6 +3022,7 @@ void gpiod_remove_lookup_table(struct gpiod_lookup_table *table)
 
        mutex_unlock(&gpio_lookup_lock);
 }
+EXPORT_SYMBOL_GPL(gpiod_remove_lookup_table);
 
 static struct gpiod_lookup_table *gpiod_find_lookup_table(struct device *dev)
 {