]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: Drop explicit initialization of struct i2c_device_id::driver_data to 0 (part 2)
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 8 May 2024 07:20:26 +0000 (09:20 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 9 May 2024 19:56:06 +0000 (12:56 -0700)
commit2fa365974c3eb97f29ff2dbeff3e9011170e492c
tree9cf67cbc974f9944d8f0dae4159ebfb3103154e4
parent6a8157812f5b486d1fdabeefa070d75ae49220ee
hwmon: Drop explicit initialization of struct i2c_device_id::driver_data to 0 (part 2)

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.

This is a follow up to commit d8a66f3621c2 ("hwmon: Drop explicit
initialization of struct i2c_device_id::driver_data to 0") which I
created before identifying a few corner cases in my conversion script.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20240508072027.2119857-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm87.c
drivers/hwmon/lm95241.c
drivers/hwmon/max6621.c
drivers/hwmon/pmbus/max15301.c