Skip to contentSkip to conversation

gpiolib: of: add forward declaration for struct device_node

PATCH New Andrei Lalaev 1 participant 1 message Jul 21, 2025 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpiolib: of: add forward declaration for struct device_node

Commit 08a149c40bdb ("gpiolib: Clean up headers") added a forward declaration for struct device.

Later, commit 07445ae1c263 ("gpiolib: of: change of_find_gpio() to accept device node") changed the function signature to accept a struct device_node instead of a struct device.

Replace forward declaration of struct device with struct device_node to match the updated function signature.

---
 drivers/gpio/gpiolib-of.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpiolib-of.h +1 -1
index 3eebfac290c5..2257f7a498a1 100644
@@ -8,7 +8,7 @@
 
 #include <linux/notifier.h>
 
-struct device;
+struct device_node;
 struct fwnode_handle;
 
 struct gpio_chip;
Signature · 1 line
2.50.1