Skip to content

Commit 38767dd

Browse files
ukleinekmpe
authored andcommitted
macintosh: 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@baylibre.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20240624132433.1244750-2-u.kleine-koenig@baylibre.com
1 parent f431a8c commit 38767dd

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

drivers/macintosh/ams/ams-i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static int ams_i2c_probe(struct i2c_client *client);
6060
static void ams_i2c_remove(struct i2c_client *client);
6161

6262
static const struct i2c_device_id ams_id[] = {
63-
{ "MAC,accelerometer_1", 0 },
63+
{ "MAC,accelerometer_1" },
6464
{ }
6565
};
6666
MODULE_DEVICE_TABLE(i2c, ams_id);

drivers/macintosh/windfarm_ad7417_sensor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static void wf_ad7417_remove(struct i2c_client *client)
304304
}
305305

306306
static const struct i2c_device_id wf_ad7417_id[] = {
307-
{ "MAC,ad7417", 0 },
307+
{ "MAC,ad7417" },
308308
{ }
309309
};
310310
MODULE_DEVICE_TABLE(i2c, wf_ad7417_id);

drivers/macintosh/windfarm_fcu_controls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ static void wf_fcu_remove(struct i2c_client *client)
573573
}
574574

575575
static const struct i2c_device_id wf_fcu_id[] = {
576-
{ "MAC,fcu", 0 },
576+
{ "MAC,fcu" },
577577
{ }
578578
};
579579
MODULE_DEVICE_TABLE(i2c, wf_fcu_id);

drivers/macintosh/windfarm_lm87_sensor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static void wf_lm87_remove(struct i2c_client *client)
156156
}
157157

158158
static const struct i2c_device_id wf_lm87_id[] = {
159-
{ "MAC,lm87cimt", 0 },
159+
{ "MAC,lm87cimt" },
160160
{ }
161161
};
162162
MODULE_DEVICE_TABLE(i2c, wf_lm87_id);

drivers/macintosh/windfarm_max6690_sensor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static void wf_max6690_remove(struct i2c_client *client)
112112
}
113113

114114
static const struct i2c_device_id wf_max6690_id[] = {
115-
{ "MAC,max6690", 0 },
115+
{ "MAC,max6690" },
116116
{ }
117117
};
118118
MODULE_DEVICE_TABLE(i2c, wf_max6690_id);

drivers/macintosh/windfarm_smu_sat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ static void wf_sat_remove(struct i2c_client *client)
333333
}
334334

335335
static const struct i2c_device_id wf_sat_id[] = {
336-
{ "MAC,smu-sat", 0 },
336+
{ "MAC,smu-sat" },
337337
{ }
338338
};
339339
MODULE_DEVICE_TABLE(i2c, wf_sat_id);

0 commit comments

Comments
 (0)