[PATCH v3 06/10] gpio: swnode: update the property definitions

Bartosz Golaszewski
2025-10-29T12:29:00Z

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

Use the recommended macros for creating references to software and
firmware nodes attached to GPIO providers.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
include/linux/gpio/property.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/linux/gpio/property.h b/include/linux/gpio/property.h
index 0d220930800276a21b5ba96a68371ce66fc4ae3e..6b1c2ed9c57594bf3ead5edc82439f9fb7f514fd 100644
--- a/include/linux/gpio/property.h
+++ b/include/linux/gpio/property.h
@@ -7,7 +7,10 @@
struct software_node;

#define PROPERTY_ENTRY_GPIO(_name_, _chip_node_, _idx_, _flags_) \
- PROPERTY_ENTRY_REF(_name_, _chip_node_, _idx_, _flags_)
+ PROPERTY_ENTRY_REF_SWNODE(_name_, _chip_node_, _idx_, _flags_)
+
+#define PROPERTY_ENTRY_GPIO_FWNODE(_name_, _chip_node_, _idx_, _flags_) \
+ PROPERTY_ENTRY_REF_FWNODE(_name_, _chip_node_, _idx_, _flags_)

extern const struct software_node swnode_gpio_undefined;

--
2.48.1