mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
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 <u.kleine-koenig@baylibre.com> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
e4066d17b9
commit
c260bda655
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user