Skip to content

Commit a4ea3e4

Browse files
ukleinekgroeck
authored andcommitted
hwmon: (isl28022) 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 it. 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: Guenter Roeck <[email protected]>
1 parent 27cad22 commit a4ea3e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/isl28022.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ static int isl28022_probe(struct i2c_client *client)
486486
}
487487

488488
static const struct i2c_device_id isl28022_ids[] = {
489-
{ "isl28022", 0},
489+
{ "isl28022" },
490490
{ /* LIST END */ }
491491
};
492492
MODULE_DEVICE_TABLE(i2c, isl28022_ids);

0 commit comments

Comments
 (0)