Skip to content

Commit c260bda

Browse files
ukleinekhdeller
authored andcommitted
fbdev: Drop explicit initialization of struct i2c_device_id::driver_data to 0
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 <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent e4066d1 commit c260bda

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/video/fbdev/matrox/matroxfb_maven.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ static void maven_remove(struct i2c_client *client)
12821282
}
12831283

12841284
static const struct i2c_device_id maven_id[] = {
1285-
{ "maven", 0 },
1285+
{ "maven" },
12861286
{ }
12871287
};
12881288
MODULE_DEVICE_TABLE(i2c, maven_id);

drivers/video/fbdev/ssd1307fb.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -782,10 +782,10 @@ static void ssd1307fb_remove(struct i2c_client *client)
782782
}
783783

784784
static const struct i2c_device_id ssd1307fb_i2c_id[] = {
785-
{ "ssd1305fb", 0 },
786-
{ "ssd1306fb", 0 },
787-
{ "ssd1307fb", 0 },
788-
{ "ssd1309fb", 0 },
785+
{ "ssd1305fb" },
786+
{ "ssd1306fb" },
787+
{ "ssd1307fb" },
788+
{ "ssd1309fb" },
789789
{ }
790790
};
791791
MODULE_DEVICE_TABLE(i2c, ssd1307fb_i2c_id);

0 commit comments

Comments
 (0)