]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
macintosh: Drop explicit initialization of struct i2c_device_id::driver_data to 0
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 24 Jun 2024 13:24:33 +0000 (15:24 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 28 Jun 2024 12:08:05 +0000 (22:08 +1000)
commit38767dde5f7b691026a8481904a0ae1c9d74e647
treeaa72622840208352178b31a7af2322fa5efa09d6
parentf431a8cde7f102fce412546db6e62fdbde1131a7
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
drivers/macintosh/ams/ams-i2c.c
drivers/macintosh/windfarm_ad7417_sensor.c
drivers/macintosh/windfarm_fcu_controls.c
drivers/macintosh/windfarm_lm87_sensor.c
drivers/macintosh/windfarm_max6690_sensor.c
drivers/macintosh/windfarm_smu_sat.c