Skip to content

Commit d8a66f3

Browse files
Uwe Kleine-Königgroeck
authored andcommitted
hwmon: 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 <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20240430085654.1028864-2-u.kleine-koenig@pengutronix.de Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 801fec8 commit d8a66f3

100 files changed

Lines changed: 119 additions & 119 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Documentation/hwmon/pmbus.rst

Lines changed: 1 addition & 1 deletion

drivers/hwmon/ad7414.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static int ad7414_probe(struct i2c_client *client)
205205
}
206206

207207
static const struct i2c_device_id ad7414_id[] = {
208-
{ "ad7414", 0 },
208+
{ "ad7414" },
209209
{}
210210
};
211211
MODULE_DEVICE_TABLE(i2c, ad7414_id);

drivers/hwmon/adc128d818.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ static void adc128_remove(struct i2c_client *client)
504504
}
505505

506506
static const struct i2c_device_id adc128_id[] = {
507-
{ "adc128d818", 0 },
507+
{ "adc128d818" },
508508
{ }
509509
};
510510
MODULE_DEVICE_TABLE(i2c, adc128_id);

drivers/hwmon/adm1026.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1849,7 +1849,7 @@ static int adm1026_probe(struct i2c_client *client)
18491849
}
18501850

18511851
static const struct i2c_device_id adm1026_id[] = {
1852-
{ "adm1026", 0 },
1852+
{ "adm1026" },
18531853
{ }
18541854
};
18551855
MODULE_DEVICE_TABLE(i2c, adm1026_id);

drivers/hwmon/adm1029.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ static int adm1029_probe(struct i2c_client *client)
379379
}
380380

381381
static const struct i2c_device_id adm1029_id[] = {
382-
{ "adm1029", 0 },
382+
{ "adm1029" },
383383
{ }
384384
};
385385
MODULE_DEVICE_TABLE(i2c, adm1029_id);

drivers/hwmon/adm1177.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ static int adm1177_probe(struct i2c_client *client)
238238
}
239239

240240
static const struct i2c_device_id adm1177_id[] = {
241-
{"adm1177", 0},
241+
{"adm1177"},
242242
{}
243243
};
244244
MODULE_DEVICE_TABLE(i2c, adm1177_id);

drivers/hwmon/adt7410.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ static int adt7410_i2c_probe(struct i2c_client *client)
8888
}
8989

9090
static const struct i2c_device_id adt7410_ids[] = {
91-
{ "adt7410", 0 },
92-
{ "adt7420", 0 },
91+
{ "adt7410" },
92+
{ "adt7420" },
9393
{}
9494
};
9595
MODULE_DEVICE_TABLE(i2c, adt7410_ids);

drivers/hwmon/adt7411.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ static int adt7411_probe(struct i2c_client *client)
697697
}
698698

699699
static const struct i2c_device_id adt7411_id[] = {
700-
{ "adt7411", 0 },
700+
{ "adt7411" },
701701
{ }
702702
};
703703
MODULE_DEVICE_TABLE(i2c, adt7411_id);

drivers/hwmon/adt7462.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1809,7 +1809,7 @@ static int adt7462_probe(struct i2c_client *client)
18091809
}
18101810

18111811
static const struct i2c_device_id adt7462_id[] = {
1812-
{ "adt7462", 0 },
1812+
{ "adt7462" },
18131813
{ }
18141814
};
18151815
MODULE_DEVICE_TABLE(i2c, adt7462_id);

drivers/hwmon/adt7470.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ static void adt7470_remove(struct i2c_client *client)
13041304
}
13051305

13061306
static const struct i2c_device_id adt7470_id[] = {
1307-
{ "adt7470", 0 },
1307+
{ "adt7470" },
13081308
{ }
13091309
};
13101310
MODULE_DEVICE_TABLE(i2c, adt7470_id);

0 commit comments

Comments
 (0)