]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
fbdev: Drop explicit initialization of struct i2c_device_id::driver_data to 0
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 24 Jun 2024 13:29:04 +0000 (15:29 +0200)
committerHelge Deller <deller@gmx.de>
Mon, 24 Jun 2024 13:57:42 +0000 (15:57 +0200)
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>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/matrox/matroxfb_maven.c
drivers/video/fbdev/ssd1307fb.c

index b15a8ad92ba704e234e7e16874897dffb2427cf7..dcfae770b42d3bea010d40745d436bd1d0a5498e 100644 (file)
@@ -1282,7 +1282,7 @@ static void maven_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id maven_id[] = {
-       { "maven", 0 },
+       { "maven" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, maven_id);
index 3f30af3c059e0f2346a336256d12e27c580aeab3..aa6cc0a8151ac09a6b10ed201b91095badd6d8e6 100644 (file)
@@ -782,10 +782,10 @@ static void ssd1307fb_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ssd1307fb_i2c_id[] = {
-       { "ssd1305fb", 0 },
-       { "ssd1306fb", 0 },
-       { "ssd1307fb", 0 },
-       { "ssd1309fb", 0 },
+       { "ssd1305fb" },
+       { "ssd1306fb" },
+       { "ssd1307fb" },
+       { "ssd1309fb" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ssd1307fb_i2c_id);