]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (cros_ec) Drop unused assignment of platform_device_id driver data
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Wed, 27 May 2026 15:15:52 +0000 (17:15 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 9 Jun 2026 15:23:13 +0000 (08:23 -0700)
commitacac4eb97a8e50bc5589fc948e2c2a7ded8f8e86
tree44d19c46b35c1c3d953bdfe123e389b00bb42476
parent7f8581c70a3bd50a932d3d2d253e99c5ec3eda74
hwmon: (cros_ec) Drop unused assignment of platform_device_id driver data

The driver explicitly set the .driver_data member of struct
platform_device_id to zero without relying on that value. Drop this
unused assignments.

While touching this array unify spacing and use named initializers for
.name.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Acked-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/972c9998054c7944f63266819d6fb08b36edb5c5.1779894738.git.u.kleine-koenig@baylibre.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/cros_ec_hwmon.c