Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Uwe Kleine-König and committed by
Michael Ellerman
38767dde f431a8cd

+6 -6
+1 -1
drivers/macintosh/ams/ams-i2c.c
··· 60 60 static void ams_i2c_remove(struct i2c_client *client); 61 61 62 62 static const struct i2c_device_id ams_id[] = { 63 - { "MAC,accelerometer_1", 0 }, 63 + { "MAC,accelerometer_1" }, 64 64 { } 65 65 }; 66 66 MODULE_DEVICE_TABLE(i2c, ams_id);
+1 -1
drivers/macintosh/windfarm_ad7417_sensor.c
··· 304 304 } 305 305 306 306 static const struct i2c_device_id wf_ad7417_id[] = { 307 - { "MAC,ad7417", 0 }, 307 + { "MAC,ad7417" }, 308 308 { } 309 309 }; 310 310 MODULE_DEVICE_TABLE(i2c, wf_ad7417_id);
+1 -1
drivers/macintosh/windfarm_fcu_controls.c
··· 573 573 } 574 574 575 575 static const struct i2c_device_id wf_fcu_id[] = { 576 - { "MAC,fcu", 0 }, 576 + { "MAC,fcu" }, 577 577 { } 578 578 }; 579 579 MODULE_DEVICE_TABLE(i2c, wf_fcu_id);
+1 -1
drivers/macintosh/windfarm_lm87_sensor.c
··· 156 156 } 157 157 158 158 static const struct i2c_device_id wf_lm87_id[] = { 159 - { "MAC,lm87cimt", 0 }, 159 + { "MAC,lm87cimt" }, 160 160 { } 161 161 }; 162 162 MODULE_DEVICE_TABLE(i2c, wf_lm87_id);
+1 -1
drivers/macintosh/windfarm_max6690_sensor.c
··· 112 112 } 113 113 114 114 static const struct i2c_device_id wf_max6690_id[] = { 115 - { "MAC,max6690", 0 }, 115 + { "MAC,max6690" }, 116 116 { } 117 117 }; 118 118 MODULE_DEVICE_TABLE(i2c, wf_max6690_id);
+1 -1
drivers/macintosh/windfarm_smu_sat.c
··· 333 333 } 334 334 335 335 static const struct i2c_device_id wf_sat_id[] = { 336 - { "MAC,smu-sat", 0 }, 336 + { "MAC,smu-sat" }, 337 337 { } 338 338 }; 339 339 MODULE_DEVICE_TABLE(i2c, wf_sat_id);