[PATCH 01/11] gpio: make gpio.h header self-contained

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The header uses WARN_ON and struct device, but defines neither.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 include/gpio.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/gpio.h b/include/gpio.h
index a56aba050a03..cc56c91c3ee2 100644
--- a/include/gpio.h
+++ b/include/gpio.h
@@ -7,6 +7,7 @@
 #include <linux/list.h>
 #include <linux/iopoll.h>
 #include <linux/bitops.h>
+#include <linux/bug.h>
 
 #ifdef CONFIG_GENERIC_GPIO
 void gpio_set_value(unsigned gpio, int value);
@@ -31,6 +32,8 @@ static inline int gpio_direction_input(unsigned gpio)
 }
 #endif
 
+struct device;
+
 #ifdef CONFIG_GPIOLIB
 void gpio_set_active(unsigned gpio, bool state);
 int gpio_is_active(unsigned gpio);
-- 
2.39.2





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux