mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:38:03 +00:00
backlight: 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@baylibre.com> Link: https://lore.kernel.org/r/20240619193558.2543645-2-u.kleine-koenig@baylibre.com Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
7857f5c38d
commit
bfd3587760
@ -963,7 +963,7 @@ static SIMPLE_DEV_PM_OPS(adp8870_i2c_pm_ops, adp8870_i2c_suspend,
|
||||
adp8870_i2c_resume);
|
||||
|
||||
static const struct i2c_device_id adp8870_id[] = {
|
||||
{ "adp8870", 0 },
|
||||
{ "adp8870" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, adp8870_id);
|
||||
|
@ -180,7 +180,7 @@ static void bd6107_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id bd6107_ids[] = {
|
||||
{ "bd6107", 0 },
|
||||
{ "bd6107" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, bd6107_ids);
|
||||
|
@ -179,8 +179,8 @@ static void ktz8866_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id ktz8866_ids[] = {
|
||||
{ "ktz8866", 0 },
|
||||
{},
|
||||
{ "ktz8866" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ktz8866_ids);
|
||||
|
||||
|
@ -311,7 +311,10 @@ static void lm3509_remove(struct i2c_client *client)
|
||||
regmap_write(data->regmap, REG_GP, 0x00);
|
||||
}
|
||||
|
||||
static const struct i2c_device_id lm3509_id[] = { { LM3509_NAME, 0 }, {} };
|
||||
static const struct i2c_device_id lm3509_id[] = {
|
||||
{ LM3509_NAME },
|
||||
{}
|
||||
};
|
||||
|
||||
MODULE_DEVICE_TABLE(i2c, lm3509_id);
|
||||
|
||||
|
@ -596,7 +596,7 @@ static void lm3630a_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id lm3630a_id[] = {
|
||||
{LM3630A_NAME, 0},
|
||||
{ LM3630A_NAME },
|
||||
{}
|
||||
};
|
||||
|
||||
|
@ -403,7 +403,7 @@ static void lm3639_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id lm3639_id[] = {
|
||||
{LM3639_NAME, 0},
|
||||
{ LM3639_NAME },
|
||||
{}
|
||||
};
|
||||
|
||||
|
@ -132,7 +132,7 @@ static void lv5207lp_remove(struct i2c_client *client)
|
||||
}
|
||||
|
||||
static const struct i2c_device_id lv5207lp_ids[] = {
|
||||
{ "lv5207lp", 0 },
|
||||
{ "lv5207lp" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, lv5207lp_ids);
|
||||
|
@ -400,7 +400,7 @@ static const struct of_device_id mp3309c_match_table[] = {
|
||||
MODULE_DEVICE_TABLE(of, mp3309c_match_table);
|
||||
|
||||
static const struct i2c_device_id mp3309c_id[] = {
|
||||
{ "mp3309c", 0 },
|
||||
{ "mp3309c" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, mp3309c_id);
|
||||
|
Loading…
Reference in New Issue
Block a user