summaryrefslogtreecommitdiff
path: root/drivers/iio/adc
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-05-12 14:50:34 +0200
committerJonathan Cameron <jic23@kernel.org>2026-05-31 10:59:39 +0100
commit3f439a2a5b37e9d72a8f4eb6974adbe7c34e1a4a (patch)
tree737b872a0914d711000c70e3200ad7a1713f4f5c /drivers/iio/adc
parent0ce8e3b445a3fec83a023f11512f63ff6da0d460 (diff)
downloadlinux-next-3f439a2a5b37e9d72a8f4eb6974adbe7c34e1a4a.tar.gz
linux-next-3f439a2a5b37e9d72a8f4eb6974adbe7c34e1a4a.zip
iio: Drop unused driver_data in four i2c drivers
For the four drivers the .driver_data member of i2c_device_id is write-only. Drop the explicit assignment. While touching these arrays use a named initializer to assign the .name member, which is easier to parse for a human. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc')
-rw-r--r--drivers/iio/adc/pac1921.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/pac1921.c b/drivers/iio/adc/pac1921.c
index bce7185953ec..68bdd2f30bad 100644
--- a/drivers/iio/adc/pac1921.c
+++ b/drivers/iio/adc/pac1921.c
@@ -1310,7 +1310,7 @@ static int pac1921_probe(struct i2c_client *client)
}
static const struct i2c_device_id pac1921_id[] = {
- { .name = "pac1921", 0 },
+ { .name = "pac1921" },
{ }
};
MODULE_DEVICE_TABLE(i2c, pac1921_id);