C99 initializers for drivers/video files
PATCH 1/1 C99 initializers for drivers/video files
Hi.
Here are a set of patches converting various files in drivers/video to use C99 initializers. pm2fb.c and retz3fb.c do not compile as they haven't been converted to the new framebuffer code, but the patches converting the existing files are included here regardless. The patches are against the current BK.
Art Haas
===== drivers/video/pm2fb.c 1.17 vs edited =====
drivers/video/pm2fb.c +11 -11
@@ -1434,24 +1434,24 @@ }static struct display_switch pm2_cfb8 = { - .setup = fbcon_cfb8_setup, - .bmove = pm2fb_pp_bmove, + .setup = fbcon_cfb8_setup, + .bmove = pm2fb_pp_bmove, #ifdef __alpha__/* Not sure why, but this works and the other does not. */ /* Also, perhaps we need a separate routine to wait for the blitter to stop before doing this? */ /* In addition, maybe we need to do this for 16 and 32 bit depths? */ - .clear = fbcon_cfb8_clear, + .clear = fbcon_cfb8_clear, #else - .clear = pm2fb_clear8, + .clear = pm2fb_clear8, #endif - .putc = fbcon_cfb8_putc, - .putcs = fbcon_cfb8_putcs, - .revc = fbcon_cfb8_revc, - .cursor = pm2fb_cursor, - .set_font = pm2fb_set_font, - .clear_margins =pm2fb_clear_margins8, - fontwidthmask:FONTWIDTH (4 )|FONTWIDTH (8 )|FONTWIDTH (12 )|FONTWIDTH (16 ) }; + .putc = fbcon_cfb8_putc, + .putcs = fbcon_cfb8_putcs, + .revc = fbcon_cfb8_revc, + .cursor = pm2fb_cursor, + .set_font = pm2fb_set_font, + .clear_margins = pm2fb_clear_margins8, + .fontwidthmask =FONTWIDTH (4 )|FONTWIDTH (8 )|FONTWIDTH (12 )|FONTWIDTH (16 ) };#endif /* FBCON_HAS_CFB8 */ #ifdef FBCON_HAS_CFB16
===== drivers/video/retz3fb.c 1.18 vs edited =====
drivers/video/retz3fb.c +8 -8
@@ -1589,13 +1589,13 @@static struct display_switch fbcon_retz3_8 = { - setup: fbcon_cfb8_setup, - bmove: retz3_8_bmove, - clear: retz3_8_clear, - putc: retz3_putc, - putcs: retz3_putcs, - revc: retz3_revc, - clear_margins: retz3_clear_margins, - fontwidthmask:FONTWIDTH (8 ) + .setup = fbcon_cfb8_setup, + .bmove = retz3_8_bmove, + .clear = retz3_8_clear, + .putc = retz3_putc, + .putcs = retz3_putcs, + .revc = retz3_revc, + .clear_margins = retz3_clear_margins, + .fontwidthmask =FONTWIDTH (8 ) };#endif
===== drivers/video/sis/sis_main.h 1.9 vs edited =====
drivers/video/sis/sis_main.h +31 -31
74 lines not on this page · raw message
===== drivers/video/radeonfb.c 1.20 vs edited =====
drivers/video/radeonfb.c +4 -4
@@ -3111,10 +3111,10 @@static struct pci_driver radeonfb_driver = { - name:"radeonfb" , - id_table: radeonfb_pci_table, - probe: radeonfb_pci_register, - remove:__devexit_p (radeonfb_pci_unregister), + .name ="radeonfb" , + .id_table = radeonfb_pci_table, + .probe = radeonfb_pci_register, + .remove =__devexit_p (radeonfb_pci_unregister), };
===== drivers/video/tridentfb.c 1.6 vs edited =====
drivers/video/tridentfb.c +4 -4
@@ -1204,10 +1204,10 @@MODULE_DEVICE_TABLE (pci,trident_devices);static struct pci_driver tridentfb_pci_driver = { - name:"tridentfb" , - id_table:trident_devices, - probe:trident_pci_probe, - remove:__devexit_p (trident_pci_remove) + .name ="tridentfb" , + .id_table = trident_devices, + .probe = trident_pci_probe, + .remove =__devexit_p (trident_pci_remove) };int __init tridentfb_init (void )
===== drivers/video/riva/fbdev.c 1.40 vs edited =====
drivers/video/riva/fbdev.c +29 -29
73 lines not on this page · raw message
Signature · 4 lines
To announce that there must be no criticism of the President, or that we are to stand by the President, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public. -- Theodore Roosevelt, Kansas City Star, 1918
James Simmons
AppliedApplied.