[PATCH v1 01/13] iio: Initialize i2c_device_id arrays using member names (part 2)

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

Date: Fri Jun 19 2026 - 12:04:16 EST


This is a follow-up for commit f68afce8e8a7 ("iio: Initialize
i2c_device_id arrays using member names"). This previous commit missed
these two instances because these drivers didn't exist yet in the tree
where I prepared the respective patch.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
---
drivers/iio/adc/rtq6056.c | 4 ++--
drivers/iio/magnetometer/mmc5983.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/iio/adc/rtq6056.c b/drivers/iio/adc/rtq6056.c
index e2b1da13c0d3..ae50fb27bac9 100644
--- a/drivers/iio/adc/rtq6056.c
+++ b/drivers/iio/adc/rtq6056.c
@@ -872,8 +872,8 @@ static const struct richtek_dev_data rtq6059_devdata = {
};

static const struct i2c_device_id rtq6056_id[] = {
- { "rtq6056", (kernel_ulong_t)&rtq6056_devdata },
- { "rtq6059", (kernel_ulong_t)&rtq6059_devdata },
+ { .name = "rtq6056", .driver_data = (kernel_ulong_t)&rtq6056_devdata },
+ { .name = "rtq6059", .driver_data = (kernel_ulong_t)&rtq6059_devdata },
{ }
};
MODULE_DEVICE_TABLE(i2c, rtq6056_id);
diff --git a/drivers/iio/magnetometer/mmc5983.c b/drivers/iio/magnetometer/mmc5983.c
index a67b13393b6b..18f3f3d25c4e 100644
--- a/drivers/iio/magnetometer/mmc5983.c
+++ b/drivers/iio/magnetometer/mmc5983.c
@@ -328,7 +328,7 @@ static const struct of_device_id mmc5983_of_match[] = {
MODULE_DEVICE_TABLE(of, mmc5983_of_match);

static const struct i2c_device_id mmc5983_id[] = {
- { "mmc5983" },
+ { .name = "mmc5983" },
{ }
};
MODULE_DEVICE_TABLE(i2c, mmc5983_id);
--
2.47.3