Skip to content

Commit b391213

Browse files
ukleinekgregkh
authored andcommitted
w1: ds2482: Drop explicit initialization of struct i2c_device_id::driver_data to 0
This driver doesn'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]> Reviewed-by: Wolfram Sang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 9d06852 commit b391213

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/w1/masters/ds2482.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ static void ds2482_remove(struct i2c_client *client)
541541
* Driver data (common to all clients)
542542
*/
543543
static const struct i2c_device_id ds2482_id[] = {
544-
{ "ds2482", 0 },
545-
{ "ds2484", 0 },
544+
{ "ds2482" },
545+
{ "ds2484" },
546546
{ }
547547
};
548548
MODULE_DEVICE_TABLE(i2c, ds2482_id);

0 commit comments

Comments
 (0)