mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-04 04:06:26 +00:00
ipmi: 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 at it, also remove commas after the sentinel entries. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Message-Id: <20240708150914.18190-2-u.kleine-koenig@baylibre.com> Signed-off-by: Corey Minyard <corey@minyard.net>
This commit is contained in:
parent
0627cef361
commit
19a01155dd
@ -350,8 +350,8 @@ static void ipmb_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id ipmb_id[] = {
|
||||
{ "ipmb-dev", 0 },
|
||||
{},
|
||||
{ "ipmb-dev" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ipmb_id);
|
||||
|
||||
|
@ -561,8 +561,8 @@ MODULE_DEVICE_TABLE(of, of_ipmi_ipmb_match);
|
||||
#endif
|
||||
|
||||
static const struct i2c_device_id ipmi_ipmb_id[] = {
|
||||
{ DEVICE_NAME, 0 },
|
||||
{},
|
||||
{ DEVICE_NAME },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ipmi_ipmb_id);
|
||||
|
||||
|
@ -2049,7 +2049,7 @@ static int dmi_ipmi_probe(struct platform_device *pdev)
|
||||
#endif
|
||||
|
||||
static const struct i2c_device_id ssif_id[] = {
|
||||
{ DEVICE_NAME, 0 },
|
||||
{ DEVICE_NAME },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ssif_id);
|
||||
|
@ -852,8 +852,8 @@ static const struct of_device_id ssif_bmc_match[] = {
|
||||
MODULE_DEVICE_TABLE(of, ssif_bmc_match);
|
||||
|
||||
static const struct i2c_device_id ssif_bmc_id[] = {
|
||||
{ DEVICE_NAME, 0 },
|
||||
{ },
|
||||
{ DEVICE_NAME },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ssif_bmc_id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user