aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib-of.h
diff options
context:
space:
mode:
authorAndrei Lalaev <[email protected]>2025-07-21 15:57:37 +0000
committerBartosz Golaszewski <[email protected]>2025-07-24 09:53:29 +0000
commitc32f66d17455970091bd97d7a9cac6f38dfcc423 (patch)
treea0291817bb4d045636832ec41f0a0f5105ba7fb6 /drivers/gpio/gpiolib-of.h
parentgpio: cadence: Remove duplicated include in gpio-cadence.c (diff)
downloadkernel-c32f66d17455970091bd97d7a9cac6f38dfcc423.tar.gz
kernel-c32f66d17455970091bd97d7a9cac6f38dfcc423.zip
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. Signed-off-by: Andrei Lalaev <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpio/gpiolib-of.h')
-rw-r--r--drivers/gpio/gpiolib-of.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib-of.h b/drivers/gpio/gpiolib-of.h
index 3eebfac290c5..2257f7a498a1 100644
--- a/drivers/gpio/gpiolib-of.h
+++ b/drivers/gpio/gpiolib-of.h
@@ -8,7 +8,7 @@
#include <linux/notifier.h>
-struct device;
+struct device_node;
struct fwnode_handle;
struct gpio_chip;