gpiolib: of: add forward declaration for struct device_node
authorAndrei Lalaev <andrey.lalaev@gmail.com>
Mon, 21 Jul 2025 15:57:37 +0000 (17:57 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 24 Jul 2025 09:53:29 +0000 (11:53 +0200)
commitc32f66d17455970091bd97d7a9cac6f38dfcc423
treea0291817bb4d045636832ec41f0a0f5105ba7fb6
parentff4322b22f35c010643de16c6f13e285bf314d83
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 <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>
drivers/gpio/gpiolib-of.h