Skip to content

Commit af6bfa9

Browse files
ukleinekbebarino
authored andcommitted
clk: 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. Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 8fcad5f commit af6bfa9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/clk/clk-cdce706.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ MODULE_DEVICE_TABLE(of, cdce706_dt_match);
678678
#endif
679679

680680
static const struct i2c_device_id cdce706_id[] = {
681-
{ "cdce706", 0 },
681+
{ "cdce706" },
682682
{ }
683683
};
684684
MODULE_DEVICE_TABLE(i2c, cdce706_id);

drivers/clk/clk-si514.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ static int si514_probe(struct i2c_client *client)
371371
}
372372

373373
static const struct i2c_device_id si514_id[] = {
374-
{ "si514", 0 },
374+
{ "si514" },
375375
{ }
376376
};
377377
MODULE_DEVICE_TABLE(i2c, si514_id);

0 commit comments

Comments
 (0)