hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/include/asm-generic/gpio.h
....@@ -2,10 +2,8 @@
22 #ifndef _ASM_GENERIC_GPIO_H
33 #define _ASM_GENERIC_GPIO_H
44
5
-#include <linux/kernel.h>
65 #include <linux/types.h>
76 #include <linux/errno.h>
8
-#include <linux/of.h>
97
108 #ifdef CONFIG_GPIOLIB
119
....@@ -140,6 +138,8 @@
140138
141139 #else /* !CONFIG_GPIOLIB */
142140
141
+#include <linux/kernel.h>
142
+
143143 static inline bool gpio_is_valid(int number)
144144 {
145145 /* only non-negative numbers are valid */