mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
hwmon: 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 touching these structs, also remove commas after the sentinel entries and use a consistent indention style. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Message-ID: <20240918123150.1540161-7-u.kleine-koenig@baylibre.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
2d5404caa8
commit
a7e03f9679
@ -927,7 +927,7 @@ static int amc6821_probe(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id amc6821_id[] = {
|
||||
{ "amc6821", 0 },
|
||||
{ "amc6821" },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
@ -572,8 +572,8 @@ static int mp2891_probe(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id mp2891_id[] = {
|
||||
{"mp2891", 0},
|
||||
{}
|
||||
{ "mp2891" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mp2891_id);
|
||||
|
||||
|
@ -233,8 +233,8 @@ static int mp2993_probe(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id mp2993_id[] = {
|
||||
{"mp2993", 0},
|
||||
{}
|
||||
{ "mp2993" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mp2993_id);
|
||||
|
||||
|
@ -291,8 +291,8 @@ static int mp9941_probe(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id mp9941_id[] = {
|
||||
{"mp9941", 0},
|
||||
{}
|
||||
{ "mp9941" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mp9941_id);
|
||||
|
||||
|
@ -346,8 +346,8 @@ static void sg2042_mcu_i2c_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id sg2042_mcu_id[] = {
|
||||
{ "sg2042-hwmon-mcu", 0 },
|
||||
{},
|
||||
{ "sg2042-hwmon-mcu" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, sg2042_mcu_id);
|
||||
|
||||
|
@ -671,7 +671,7 @@ static int spd5118_resume(struct device *dev)
|
||||
static DEFINE_SIMPLE_DEV_PM_OPS(spd5118_pm_ops, spd5118_suspend, spd5118_resume);
|
||||
|
||||
static const struct i2c_device_id spd5118_id[] = {
|
||||
{ "spd5118", 0 },
|
||||
{ "spd5118" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, spd5118_id);
|
||||
|
Loading…
Reference in New Issue
Block a user