summaryrefslogtreecommitdiff
path: root/drivers/iio/magnetometer
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-06-19 17:54:29 +0200
committerJonathan Cameron <jic23@kernel.org>2026-06-30 00:15:55 +0100
commitd60d6314519ec62ffe8691d033769c07999de84a (patch)
tree00ea3218d8cba89af30470a74dbd4229d0e3435e /drivers/iio/magnetometer
parente8349f9473423fdd357da33eec628d5ea9c555f5 (diff)
downloadlinux-next-d60d6314519ec62ffe8691d033769c07999de84a.tar.gz
linux-next-d60d6314519ec62ffe8691d033769c07999de84a.zip
iio: Initialize i2c_device_id arrays using member names (part 2)
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@baylibre.com> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/magnetometer')
-rw-r--r--drivers/iio/magnetometer/mmc5983.c2
1 files changed, 1 insertions, 1 deletions
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);