summaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel/dmard06.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2024-05-08 09:29:27 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-05-27 10:48:57 +0200
commit4391affa107d68b6c3e5222264e91bbc21793cf0 (patch)
treee363852fcd7ba512469b2fb889c536c06297c53d /drivers/iio/accel/dmard06.c
parentiio: pressure: bmp280: Add more intuitive name for bmp180_measure() (diff)
downloadlinux-4391affa107d68b6c3e5222264e91bbc21793cf0.tar.xz
linux-4391affa107d68b6c3e5222264e91bbc21793cf0.zip
iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0
These drivers don't use the driver_data member of struct i2c_device_id, so don't explicitly initialize this member. This prepares putting driver_data in an anonymous union which requires either no initialization or named designators. But it's also a nice cleanup on its own. While add it, also remove commas after the sentinel entries. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20240508072928.2135858-2-u.kleine-koenig@pengutronix.de Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel/dmard06.c')
-rw-r--r--drivers/iio/accel/dmard06.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iio/accel/dmard06.c b/drivers/iio/accel/dmard06.c
index 2e719d60fff8..fb14894c66f9 100644
--- a/drivers/iio/accel/dmard06.c
+++ b/drivers/iio/accel/dmard06.c
@@ -201,9 +201,9 @@ static DEFINE_SIMPLE_DEV_PM_OPS(dmard06_pm_ops, dmard06_suspend,
dmard06_resume);
static const struct i2c_device_id dmard06_id[] = {
- { "dmard05", 0 },
- { "dmard06", 0 },
- { "dmard07", 0 },
+ { "dmard05" },
+ { "dmard06" },
+ { "dmard07" },
{ }
};
MODULE_DEVICE_TABLE(i2c, dmard06_id);