|
@@ -41,6 +41,7 @@ static inline bool gpio_is_valid(int number)
|
|
}
|
|
}
|
|
|
|
|
|
struct device;
|
|
struct device;
|
|
|
|
+struct gpio;
|
|
struct seq_file;
|
|
struct seq_file;
|
|
struct module;
|
|
struct module;
|
|
struct device_node;
|
|
struct device_node;
|
|
@@ -170,18 +171,6 @@ extern int __gpio_cansleep(unsigned gpio);
|
|
|
|
|
|
extern int __gpio_to_irq(unsigned gpio);
|
|
extern int __gpio_to_irq(unsigned gpio);
|
|
|
|
|
|
-/**
|
|
|
|
- * struct gpio - a structure describing a GPIO with configuration
|
|
|
|
- * @gpio: the GPIO number
|
|
|
|
- * @flags: GPIO configuration as specified by GPIOF_*
|
|
|
|
- * @label: a literal description string of this GPIO
|
|
|
|
- */
|
|
|
|
-struct gpio {
|
|
|
|
- unsigned gpio;
|
|
|
|
- unsigned long flags;
|
|
|
|
- const char *label;
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
extern int gpio_request_one(unsigned gpio, unsigned long flags, const char *label);
|
|
extern int gpio_request_one(unsigned gpio, unsigned long flags, const char *label);
|
|
extern int gpio_request_array(const struct gpio *array, size_t num);
|
|
extern int gpio_request_array(const struct gpio *array, size_t num);
|
|
extern void gpio_free_array(const struct gpio *array, size_t num);
|
|
extern void gpio_free_array(const struct gpio *array, size_t num);
|