Skip to content

Commit c32f66d

Browse files
AndreyLalaevBartosz Golaszewski
authored andcommitted
gpiolib: of: add forward declaration for struct device_node
Commit 08a149c ("gpiolib: Clean up headers") added a forward declaration for struct device. Later, commit 07445ae ("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 <andrey.lalaev@gmail.com> Link: https://lore.kernel.org/r/20250721155737.261990-1-andrey.lalaev@gmail.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent ff4322b commit c32f66d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpio/gpiolib-of.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include <linux/notifier.h>
1010

11-
struct device;
11+
struct device_node;
1212
struct fwnode_handle;
1313

1414
struct gpio_chip;

0 commit comments

Comments
 (0)