[PATCH 01/11] gpio: make gpio.h header self-contained
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri Aug 9 07:23:55 PDT 2024
The header uses WARN_ON and struct device, but defines neither.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
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
More information about the barebox
mailing list