瀏覽代碼

gpiolib: Export gpiod_configure_flags() to internal users

This is preparatory patch for enabling GPIO ACPI to configure a pin
accordingly.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Andy Shevchenko 8 年之前
父節點
當前提交
c29fd9ebb2
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 1
      drivers/gpio/gpiolib.c
  2. 2 0
      drivers/gpio/gpiolib.h

+ 1 - 1
drivers/gpio/gpiolib.c

@@ -3224,7 +3224,7 @@ EXPORT_SYMBOL_GPL(gpiod_get_optional);
  * requested function and/or index, or another IS_ERR() code if an error
  * requested function and/or index, or another IS_ERR() code if an error
  * occurred while trying to acquire the GPIO.
  * occurred while trying to acquire the GPIO.
  */
  */
-static int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id,
+int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id,
 		unsigned long lflags, enum gpiod_flags dflags)
 		unsigned long lflags, enum gpiod_flags dflags)
 {
 {
 	int status;
 	int status;

+ 2 - 0
drivers/gpio/gpiolib.h

@@ -200,6 +200,8 @@ struct gpio_desc {
 
 
 int gpiod_request(struct gpio_desc *desc, const char *label);
 int gpiod_request(struct gpio_desc *desc, const char *label);
 void gpiod_free(struct gpio_desc *desc);
 void gpiod_free(struct gpio_desc *desc);
+int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id,
+		unsigned long lflags, enum gpiod_flags dflags);
 int gpiod_hog(struct gpio_desc *desc, const char *name,
 int gpiod_hog(struct gpio_desc *desc, const char *name,
 		unsigned long lflags, enum gpiod_flags dflags);
 		unsigned long lflags, enum gpiod_flags dflags);