]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: Use named initializers for platform_device_id arrays
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Wed, 27 May 2026 15:15:53 +0000 (17:15 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 9 Jun 2026 15:23:17 +0000 (08:23 -0700)
commitd12bcf7d414065e0708e775b93e445fcfe423751
tree892f9d618a9ca272d4c52f59f7292b8b2a70a406
parentacac4eb97a8e50bc5589fc948e2c2a7ded8f8e86
hwmon: Use named initializers for platform_device_id arrays

Named initializers are better readable and more robust to changes of the
struct definition. This robustness is relevant for a planned change to
struct platform_device_id replacing .driver_data by an anonymous unit.

While touching these arrays unify usage of commas.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/25d38df8db42d69f33fa30267c9fd5ea058223d0.1779894738.git.u.kleine-koenig@baylibre.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/max197.c
drivers/hwmon/ntc_thermistor.c
drivers/hwmon/sht15.c