[PATCH v1 02/20] gpio: max7301: Drop unused assignment of spi_device_id driver data

From: Uwe Kleine-König (The Capable Hub)

Date: Tue Jul 14 2026 - 03:25:31 EST


The driver explicitly sets the .driver_data member of struct
acpi_device_id to zero without relying on that value. Drop this
unused assignment.

This patch doesn't modify the compiled array, only its representation
in source form benefits.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
---
drivers/gpio/gpio-max7301.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-max7301.c b/drivers/gpio/gpio-max7301.c
index 11813f41d460..c8bf6a9c3de0 100644
--- a/drivers/gpio/gpio-max7301.c
+++ b/drivers/gpio/gpio-max7301.c
@@ -70,7 +70,7 @@ static void max7301_remove(struct spi_device *spi)
}

static const struct spi_device_id max7301_id[] = {
- { "max7301", 0 },
+ { "max7301" },
{ }
};
MODULE_DEVICE_TABLE(spi, max7301_id);
--
2.55.0.11.g153666a7d9bb