|
@@ -145,6 +145,7 @@ int gpiod_is_active_low(const struct gpio_desc *desc);
|
|
|
int gpiod_cansleep(const struct gpio_desc *desc);
|
|
|
|
|
|
int gpiod_to_irq(const struct gpio_desc *desc);
|
|
|
+void gpiod_set_consumer_name(struct gpio_desc *desc, const char *name);
|
|
|
|
|
|
/* Convert between the old gpio_ and new gpiod_ interfaces */
|
|
|
struct gpio_desc *gpio_to_desc(unsigned gpio);
|
|
@@ -467,6 +468,12 @@ static inline int gpiod_to_irq(const struct gpio_desc *desc)
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
+static inline void gpiod_set_consumer_name(struct gpio_desc *desc, const char *name)
|
|
|
+{
|
|
|
+ /* GPIO can never have been requested */
|
|
|
+ WARN_ON(1);
|
|
|
+}
|
|
|
+
|
|
|
static inline struct gpio_desc *gpio_to_desc(unsigned gpio)
|
|
|
{
|
|
|
return ERR_PTR(-EINVAL);
|