]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
hwmon: Drop unused i2c driver_data
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Wed, 13 May 2026 16:44:57 +0000 (18:44 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 9 Jun 2026 15:22:59 +0000 (08:22 -0700)
The four drivers all don't make use of the value that was explicitly
assigned to the .driver_data member. Drop the assignment.

While touching these lines also make the assignments use named
initializers and drop a comma after the end-of-list marker.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz> # For
Link: https://lore.kernel.org/r/e8ceb3931975813545a8b478cc1a71b4ede9a6c0.1778688803.git.u.kleine-koenig@baylibre.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm80.c
drivers/hwmon/pmbus/aps-379.c
drivers/hwmon/pmbus/lt3074.c
drivers/hwmon/tsc1641.c

index 63c7831bd3e11b4789e9a8b8d802671e9a313e51..002c669182e1539f5cb013a9c11c47bfddae0f13 100644 (file)
@@ -622,8 +622,8 @@ static int lm80_probe(struct i2c_client *client)
  */
 
 static const struct i2c_device_id lm80_id[] = {
-       { "lm80", 0 },
-       { "lm96080", 1 },
+       { "lm80" },
+       { "lm96080" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, lm80_id);
index 7d46cd647e20aab0135a8608c7642a6c0b15e5c9..3ec0940ae56444f148a475034db1c8befb1e20cd 100644 (file)
@@ -100,8 +100,8 @@ static struct pmbus_driver_info aps_379_info = {
 };
 
 static const struct i2c_device_id aps_379_id[] = {
-       { "aps-379", 0 },
-       {},
+       { .name = "aps-379" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, aps_379_id);
 
index 3704dbe7b54ab8beaf0965463fe6400207d0bb98..ed932ddb4f77b6b54e5e02057783eff650bf78ae 100644 (file)
@@ -95,8 +95,8 @@ static int lt3074_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id lt3074_id[] = {
-       { "lt3074", 0 },
-       {}
+       { .name = "lt3074" },
+       { }
 };
 MODULE_DEVICE_TABLE(i2c, lt3074_id);
 
index 2b5d34bab146df5e717678fa09a407bf90afc89d..fc53cd5bb6e099e5d2474881735435db2bd3bd25 100644 (file)
@@ -721,7 +721,7 @@ static int tsc1641_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id tsc1641_id[] = {
-       { "tsc1641", 0 },
+       { .name = "tsc1641" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, tsc1641_id);