mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
extcon: 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. Link: https://lore.kernel.org/lkml/20240918123150.1540161-6-u.kleine-koenig@baylibre.com/ Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
This commit is contained in:
parent
68c8448341
commit
7041ed0dde
2 changed files with 2 additions and 2 deletions
|
|
@ -350,7 +350,7 @@ static const struct dev_pm_ops fsa9480_pm_ops = {
|
|||
};
|
||||
|
||||
static const struct i2c_device_id fsa9480_id[] = {
|
||||
{ "fsa9480", 0 },
|
||||
{ "fsa9480" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, fsa9480_id);
|
||||
|
|
|
|||
|
|
@ -338,7 +338,7 @@ static const struct of_device_id ptn5150_dt_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, ptn5150_dt_match);
|
||||
|
||||
static const struct i2c_device_id ptn5150_i2c_id[] = {
|
||||
{ "ptn5150", 0 },
|
||||
{ "ptn5150" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, ptn5150_i2c_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue