]> Git Repo - linux.git/blobdiff - drivers/gpio/gpiolib-of.c
gpio: make of_get_named_gpiod_flags() private
[linux.git] / drivers / gpio / gpiolib-of.c
index db98d3a12f707ad5cdf9d2325813ac83641be3db..af7e25c9a9ae6d56d5765870f233830c7b4a9e5a 100644 (file)
@@ -96,6 +96,20 @@ struct gpio_desc *of_get_named_gpiod_flags(struct device_node *np,
 }
 EXPORT_SYMBOL(of_get_named_gpiod_flags);
 
+int of_get_named_gpio_flags(struct device_node *np, const char *list_name,
+                           int index, enum of_gpio_flags *flags)
+{
+       struct gpio_desc *desc;
+
+       desc = of_get_named_gpiod_flags(np, list_name, index, flags);
+
+       if (IS_ERR(desc))
+               return PTR_ERR(desc);
+       else
+               return desc_to_gpio(desc);
+}
+EXPORT_SYMBOL(of_get_named_gpio_flags);
+
 /**
  * of_gpio_simple_xlate - translate gpio_spec to the GPIO number and flags
  * @gc:                pointer to the gpio_chip structure
This page took 0.031955 seconds and 4 git commands to generate.