]> git.ipfire.org Git - thirdparty/linux.git/commit
hwmon: Drop explicit initialization of struct i2c_device_id::driver_data to 0
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Wed, 18 Sep 2024 12:31:49 +0000 (14:31 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 10 Nov 2024 22:48:05 +0000 (14:48 -0800)
commita7e03f96791e098ebde43acce6b04283f10815db
tree7f39bbc294661ad5a846d75241e7fdc5cb9ec443
parent2d5404caa8c7bb5c4e0435f94b28834ae5456623
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.

While touching these structs, also remove commas after the sentinel
entries and use a consistent indention style.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Message-ID: <20240918123150.1540161-7-u.kleine-koenig@baylibre.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/amc6821.c
drivers/hwmon/pmbus/mp2891.c
drivers/hwmon/pmbus/mp2993.c
drivers/hwmon/pmbus/mp9941.c
drivers/hwmon/sg2042-mcu.c
drivers/hwmon/spd5118.c