mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-19 22:55:43 -04:00
fbdev: vga16fb: Drop unused assignment of platform_device_id driver data
The driver explicitly sets the .driver_data member of struct platform_device_id to zero without relying on that value. Drop these unused assignments. While touching this array unify spacing and usage of commas and use named initializers for .name. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
committed by
Helge Deller
parent
4708cac0e2
commit
fc36dd3041
@@ -1421,8 +1421,8 @@ static void vga16fb_remove(struct platform_device *dev)
|
||||
}
|
||||
|
||||
static const struct platform_device_id vga16fb_driver_id_table[] = {
|
||||
{"ega-framebuffer", 0},
|
||||
{"vga-framebuffer", 0},
|
||||
{ .name = "ega-framebuffer" },
|
||||
{ .name = "vga-framebuffer" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, vga16fb_driver_id_table);
|
||||
|
||||
Reference in New Issue
Block a user