diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-05-10 23:10:11 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-07-04 18:08:02 +0200 |
commit | 5e9ea43c63ffadec2cd906fab169be94ebc9e0a8 (patch) | |
tree | c5d6c94dcc81892ad6fb0f9340df9fb711da98bc /drivers/mfd/axp20x-i2c.c | |
parent | mfd: menelaus: Remove unused linux/gpio.h (diff) | |
download | linux-5e9ea43c63ffadec2cd906fab169be94ebc9e0a8.tar.xz linux-5e9ea43c63ffadec2cd906fab169be94ebc9e0a8.zip |
mfd: 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/20240510211011.2273978-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd/axp20x-i2c.c')
-rw-r--r-- | drivers/mfd/axp20x-i2c.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/mfd/axp20x-i2c.c b/drivers/mfd/axp20x-i2c.c index b8e7ac89f697..791a0b4cb64b 100644 --- a/drivers/mfd/axp20x-i2c.c +++ b/drivers/mfd/axp20x-i2c.c @@ -75,18 +75,18 @@ MODULE_DEVICE_TABLE(of, axp20x_i2c_of_match); #endif static const struct i2c_device_id axp20x_i2c_id[] = { - { "axp152", 0 }, - { "axp192", 0 }, - { "axp202", 0 }, - { "axp209", 0 }, - { "axp221", 0 }, - { "axp223", 0 }, - { "axp313a", 0 }, - { "axp717", 0 }, - { "axp803", 0 }, - { "axp806", 0 }, - { "axp15060", 0 }, - { }, + { "axp152" }, + { "axp192" }, + { "axp202" }, + { "axp209" }, + { "axp221" }, + { "axp223" }, + { "axp313a" }, + { "axp717" }, + { "axp803" }, + { "axp806" }, + { "axp15060" }, + { } }; MODULE_DEVICE_TABLE(i2c, axp20x_i2c_id); |