Skip to content

Commit 7041ed0

Browse files
ukleinekchanwoochoi
authored andcommitted
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/[email protected]/ Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
1 parent 68c8448 commit 7041ed0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/extcon/extcon-fsa9480.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ static const struct dev_pm_ops fsa9480_pm_ops = {
350350
};
351351

352352
static const struct i2c_device_id fsa9480_id[] = {
353-
{ "fsa9480", 0 },
353+
{ "fsa9480" },
354354
{}
355355
};
356356
MODULE_DEVICE_TABLE(i2c, fsa9480_id);

drivers/extcon/extcon-ptn5150.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ static const struct of_device_id ptn5150_dt_match[] = {
338338
MODULE_DEVICE_TABLE(of, ptn5150_dt_match);
339339

340340
static const struct i2c_device_id ptn5150_i2c_id[] = {
341-
{ "ptn5150", 0 },
341+
{ "ptn5150" },
342342
{ }
343343
};
344344
MODULE_DEVICE_TABLE(i2c, ptn5150_i2c_id);

0 commit comments

Comments
 (0)