[PATCH v2 09/10] gpio: shared: removed unused field from struct gpio_shared_entry

From: Bartosz Golaszewski

Date: Fri Nov 13 2026 - 11:37:44 EST


The index field in struct gpio_shared_entry is an unused leftover.
Remove it.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>
---
drivers/gpio/gpiolib-shared.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/gpio/gpiolib-shared.c b/drivers/gpio/gpiolib-shared.c
index edb04a5bb987e12faf96e5b70198a9fabf60ad0a..44af3bc1494e47310973844a0ef19ac3ec5cd719 100644
--- a/drivers/gpio/gpiolib-shared.c
+++ b/drivers/gpio/gpiolib-shared.c
@@ -51,8 +51,6 @@ struct gpio_shared_entry {
struct fwnode_handle *fwnode;
/* Hardware offset of the GPIO within its chip. */
unsigned int offset;
- /* Index in the property value array. */
- size_t index;
/* Synchronizes the modification of shared_desc and offset. */
struct mutex lock;
struct gpio_shared_desc *shared_desc;
@@ -233,7 +231,6 @@ static int gpio_shared_of_traverse(struct device_node *curr)

entry->fwnode = fwnode_handle_get(fwnode);
entry->offset = offset;
- entry->index = count;
INIT_LIST_HEAD(&entry->refs);
mutex_init(&entry->lock);


--
2.47.3