auxdisplay: 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:50 +0000 (14:31 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 30 Sep 2024 13:22:48 +0000 (16:22 +0300)
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.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/auxdisplay/ht16k33.c
drivers/auxdisplay/lcd2s.c

index 8a7034b41d50e8f0ab1228000bb4b703f277e825..b00012a556fb39226fafef63490e845bc725c2ab 100644 (file)
@@ -747,7 +747,7 @@ static void ht16k33_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ht16k33_i2c_match[] = {
-       { "ht16k33", 0 },
+       { "ht16k33" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ht16k33_i2c_match);
index 6422be0dfe20e65add8516ba14ac1ec5a0139675..a28daa4ffbf75204648a59f65f888717bf889924 100644 (file)
@@ -349,7 +349,7 @@ static void lcd2s_i2c_remove(struct i2c_client *i2c)
 }
 
 static const struct i2c_device_id lcd2s_i2c_id[] = {
-       { "lcd2s", 0 },
+       { "lcd2s" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, lcd2s_i2c_id);