mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-23 08:35:19 -05:00
hwmon: Drop explicit initialization of struct i2c_device_id::driver_data to 0 (part 2)
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.
This is a follow up to commit d8a66f3621
("hwmon: Drop explicit
initialization of struct i2c_device_id::driver_data to 0") which I
created before identifying a few corner cases in my conversion script.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20240508072027.2119857-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
6a8157812f
commit
2fa365974c
4 changed files with 5 additions and 5 deletions
|
@ -976,7 +976,7 @@ static int lm87_probe(struct i2c_client *client)
|
||||||
|
|
||||||
static const struct i2c_device_id lm87_id[] = {
|
static const struct i2c_device_id lm87_id[] = {
|
||||||
{ "lm87" },
|
{ "lm87" },
|
||||||
{ "adm1024", 0 },
|
{ "adm1024" },
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, lm87_id);
|
MODULE_DEVICE_TABLE(i2c, lm87_id);
|
||||||
|
|
|
@ -458,7 +458,7 @@ static int lm95241_probe(struct i2c_client *client)
|
||||||
/* Driver data (common to all clients) */
|
/* Driver data (common to all clients) */
|
||||||
static const struct i2c_device_id lm95241_id[] = {
|
static const struct i2c_device_id lm95241_id[] = {
|
||||||
{ "lm95231" },
|
{ "lm95231" },
|
||||||
{ "lm95241", 0 },
|
{ "lm95241" },
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, lm95241_id);
|
MODULE_DEVICE_TABLE(i2c, lm95241_id);
|
||||||
|
|
|
@ -537,7 +537,7 @@ static int max6621_probe(struct i2c_client *client)
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct i2c_device_id max6621_id[] = {
|
static const struct i2c_device_id max6621_id[] = {
|
||||||
{ MAX6621_DRV_NAME, 0 },
|
{ MAX6621_DRV_NAME },
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, max6621_id);
|
MODULE_DEVICE_TABLE(i2c, max6621_id);
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
static const struct i2c_device_id max15301_id[] = {
|
static const struct i2c_device_id max15301_id[] = {
|
||||||
{ "bmr461" },
|
{ "bmr461" },
|
||||||
{"max15301", 0},
|
{ "max15301" },
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, max15301_id);
|
MODULE_DEVICE_TABLE(i2c, max15301_id);
|
||||||
|
|
Loading…
Add table
Reference in a new issue