[PATCH v5 07/17] mfd: Drop unused assignment of i2c_device_id driver data

From: Uwe Kleine-König

Date: Mon Nov 23 2026 - 06:19:50 EST


From: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>

The drivers explicitly set the .driver_data member of struct
i2c_device_id to zero without relying on that value. Drop these
unused assignments.

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

Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
---
drivers/mfd/as3711.c | 2 +-
drivers/mfd/rc5t583.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mfd/as3711.c b/drivers/mfd/as3711.c
index b123195d911c..9513dc4ee0cd 100644
--- a/drivers/mfd/as3711.c
+++ b/drivers/mfd/as3711.c
@@ -191,7 +191,7 @@ static int as3711_i2c_probe(struct i2c_client *client)
}

static const struct i2c_device_id as3711_i2c_id[] = {
- {.name = "as3711", .driver_data = 0},
+ { .name = "as3711" },
{}
};

diff --git a/drivers/mfd/rc5t583.c b/drivers/mfd/rc5t583.c
index 431ee5deec00..96553e5a8279 100644
--- a/drivers/mfd/rc5t583.c
+++ b/drivers/mfd/rc5t583.c
@@ -280,7 +280,7 @@ static int rc5t583_i2c_probe(struct i2c_client *i2c)
}

static const struct i2c_device_id rc5t583_i2c_id[] = {
- {.name = "rc5t583", .driver_data = 0},
+ { .name = "rc5t583" },
{}
};

--
2.47.3