C99 initializers for drivers/ide/pci (2 of 2), take 2
PATCH 1/1 C99 initializers for drivers/ide/pci (2 of 2), take 2
Hi.
Here's a new set of patches for drivers/ide/pci that switch the files to use C99 initializers. I've removed the lines that initialize variables to NULL or 0. The patch is against 2.5.47.
This patch is for the files starting with [o-z].
Art Haas
drivers/ide/pci/opti621.h renamed from drivers/ide/pci/opti621.h.old +21 -30
@@ -11,38 +11,29 @@static ide_pci_device_t opti621_chipsets[]__devinitdata = { {/* 0 */ - vendor:PCI_VENDOR_ID_OPTI , - device:PCI_DEVICE_ID_OPTI_82C621 , - name:"OPTI621" , - init_setup: init_setup_opti621, - init_chipset:NULL , - init_iops:NULL , - init_hwif: init_hwif_opti621, - init_dma: init_dma_opti621, - channels:2 , - autodma:AUTODMA , - enablebits: {{0x45 ,0x80 ,0x00 }, {0x40 ,0x08 ,0x00 }}, - bootable:ON_BOARD , - extra:0 , + .vendor =PCI_VENDOR_ID_OPTI , + .device =PCI_DEVICE_ID_OPTI_82C621 , + .name ="OPTI621" , + .init_setup = init_setup_opti621, + .init_hwif = init_hwif_opti621, + .init_dma = init_dma_opti621, + .channels =2 , + .autodma =AUTODMA , + .enablebits = {{0x45 ,0x80 ,0x00 }, {0x40 ,0x08 ,0x00 }}, + .bootable =ON_BOARD , },{/* 1 */ - vendor:PCI_VENDOR_ID_OPTI , - device:PCI_DEVICE_ID_OPTI_82C825 , - name:"OPTI621X" , - init_setup: init_setup_opti621, - init_chipset:NULL , - init_iops:NULL , - init_hwif: init_hwif_opti621, - init_dma: init_dma_opti621, - channels:2 , - autodma:AUTODMA , - enablebits: {{0x45 ,0x80 ,0x00 }, {0x40 ,0x08 ,0x00 }}, - bootable:ON_BOARD , - extra:0 , + .vendor =PCI_VENDOR_ID_OPTI , + .device =PCI_DEVICE_ID_OPTI_82C825 , + .name ="OPTI621X" , + .init_setup = init_setup_opti621, + .init_hwif = init_hwif_opti621, + .init_dma = init_dma_opti621, + .channels =2 , + .autodma =AUTODMA , + .enablebits = {{0x45 ,0x80 ,0x00 }, {0x40 ,0x08 ,0x00 }}, + .bootable =ON_BOARD , },{ - vendor:0 , - device:0 , - channels:0 , - bootable:EOL , + .bootable =EOL , } };
drivers/ide/pci/pdc202xx_new.h renamed from drivers/ide/pci/pdc202xx_new.h.old +83 -101
209 lines not on this page · raw message
drivers/ide/pci/pdc202xx_old.h renamed from drivers/ide/pci/pdc202xx_old.h.old +69 -77
178 lines not on this page · raw message
drivers/ide/pci/pdcadma.h renamed from drivers/ide/pci/pdcadma.h.old +15 -21
@@ -17,10 +17,9 @@static ide_pci_host_proc_t pdcadma_procs[]__initdata = { { - name:"pdcadma" , - set:1 , - get_info: pdcadma_get_info, - parent:NULL , + .name ="pdcadma" , + .set =1 , + .get_info = pdcadma_get_info, }, };#endif /* defined(DISPLAY_PDCADMA_TIMINGS) && defined(CONFIG_PROC_FS) */
@@ -32,24 +31,19 @@static ide_pci_device_t pdcadma_chipsets[]__devinitdata = { {/* 0 */ - vendor:PCI_VENDOR_ID_PDC , - device:PCI_DEVICE_ID_PDC_1841 , - name:"PDCADMA" , - init_setup: init_setup_pdcadma, - init_chipset: init_chipset_pdcadma, - init_iops:NULL , - init_hwif: init_hwif_pdcadma, - init_dma: init_dma_pdcadma, - channels:2 , - autodma:NODMA , - enablebits: {{0x00 ,0x00 ,0x00 }, {0x00 ,0x00 ,0x00 }}, - bootable:OFF_BOARD , - extra:0 , + .vendor =PCI_VENDOR_ID_PDC , + .device =PCI_DEVICE_ID_PDC_1841 , + .name ="PDCADMA" , + .init_setup = init_setup_pdcadma, + .init_chipset = init_chipset_pdcadma, + .init_hwif = init_hwif_pdcadma, + .init_dma = init_dma_pdcadma, + .channels =2 , + .autodma =NODMA , + .enablebits = {{0x00 ,0x00 ,0x00 }, {0x00 ,0x00 ,0x00 }}, + .bootable =OFF_BOARD , },{ - vendor:0 , - device:0 , - channels:0 , - bootable:EOL , + .bootable =EOL , } };
drivers/ide/pci/piix.h renamed from drivers/ide/pci/piix.h.old +178 -217
423 lines not on this page · raw message
drivers/ide/pci/rz1000.h renamed from drivers/ide/pci/rz1000.h.old +17 -28
53 lines not on this page · raw message
drivers/ide/pci/serverworks.c renamed from drivers/ide/pci/serverworks.c.old +2 -2
@@ -801,8 +801,8 @@ .id_table = svwks_pci_tbl, .probe = svwks_init_one,#if 0 /* FIXME: implement */ - suspend: , - resume: , + .suspend = , + .resume = ,#endif };
drivers/ide/pci/serverworks.h renamed from drivers/ide/pci/serverworks.h.old +47 -60
123 lines not on this page · raw message
drivers/ide/pci/siimage.h renamed from drivers/ide/pci/siimage.h.old +26 -32
72 lines not on this page · raw message
drivers/ide/pci/sis5513.h renamed from drivers/ide/pci/sis5513.h.old +14 -20
@@ -17,10 +17,9 @@static ide_pci_host_proc_t sis_procs[]__initdata = { { - name:"sis" , - set:1 , - get_info: sis_get_info, - parent:NULL , + .name ="sis" , + .set =1 , + .get_info = sis_get_info, }, };#endif /* defined(DISPLAY_SIS_TIMINGS) && defined(CONFIG_PROC_FS) */
@@ -31,23 +30,18 @@static ide_pci_device_t sis5513_chipsets[]__devinitdata = { {/* 0 */ - vendor:PCI_VENDOR_ID_SI , - device:PCI_DEVICE_ID_SI_5513 , - name:"SIS5513" , - init_chipset: init_chipset_sis5513, - init_iops:NULL , - init_hwif: init_hwif_sis5513, - init_dma: init_dma_sis5513, - channels:2 , - autodma:NOAUTODMA , - enablebits: {{0x4a ,0x02 ,0x02 }, {0x4a ,0x04 ,0x04 }}, - bootable:ON_BOARD , - extra:0 + .vendor =PCI_VENDOR_ID_SI , + .device =PCI_DEVICE_ID_SI_5513 , + .name ="SIS5513" , + .init_chipset = init_chipset_sis5513, + .init_hwif = init_hwif_sis5513, + .init_dma = init_dma_sis5513, + .channels =2 , + .autodma =NOAUTODMA , + .enablebits = {{0x4a ,0x02 ,0x02 }, {0x4a ,0x04 ,0x04 }}, + .bootable =ON_BOARD , },{ - vendor:0 , - device:0 , - channels:0 , - bootable:EOL , + .bootable =EOL , } };
drivers/ide/pci/sl82c105.h renamed from drivers/ide/pci/sl82c105.h.old +11 -16
@@ -11,23 +11,18 @@static ide_pci_device_t sl82c105_chipsets[]__devinitdata = { {/* 0 */ - vendor:PCI_VENDOR_ID_WINBOND , - device:PCI_DEVICE_ID_WINBOND_82C105 , - name:"W82C105" , - init_chipset: init_chipset_sl82c105, - init_iops:NULL , - init_hwif: init_hwif_sl82c105, - init_dma: init_dma_sl82c105, - channels:2 , - autodma:NOAUTODMA , - enablebits: {{0x40 ,0x01 ,0x01 }, {0x40 ,0x10 ,0x10 }}, - bootable:ON_BOARD , - extra:0 , + .vendor =PCI_VENDOR_ID_WINBOND , + .device =PCI_DEVICE_ID_WINBOND_82C105 , + .name ="W82C105" , + .init_chipset = init_chipset_sl82c105, + .init_hwif = init_hwif_sl82c105, + .init_dma = init_dma_sl82c105, + .channels =2 , + .autodma =NOAUTODMA , + .enablebits = {{0x40 ,0x01 ,0x01 }, {0x40 ,0x10 ,0x10 }}, + .bootable =ON_BOARD , },{ - vendor:0 , - device:0 , - channels:0 , - bootable:EOL , + .bootable =EOL , } };
drivers/ide/pci/slc90e66.h renamed from drivers/ide/pci/slc90e66.h.old +14 -20
@@ -19,10 +19,9 @@static ide_pci_host_proc_t slc90e66_procs[]__initdata = { { - name:"slc90e66" , - set:1 , - get_info: slc90e66_get_info, - parent:NULL , + .name ="slc90e66" , + .set =1 , + .get_info = slc90e66_get_info, }, };#endif /* defined(DISPLAY_SLC90E66_TIMINGS) && defined(CONFIG_PROC_FS) */
@@ -33,23 +32,18 @@static ide_pci_device_t slc90e66_chipsets[]__devinitdata = { {/* 0 */ - vendor:PCI_VENDOR_ID_EFAR , - device:PCI_DEVICE_ID_EFAR_SLC90E66_1 , - name:"SLC90E66" , - init_chipset: init_chipset_slc90e66, - init_iops:NULL , - init_hwif: init_hwif_slc90e66, - init_dma: init_dma_slc90e66, - channels:2 , - autodma:AUTODMA , - enablebits: {{0x41 ,0x80 ,0x80 }, {0x43 ,0x80 ,0x80 }}, - bootable:ON_BOARD , - extra:0 , + .vendor =PCI_VENDOR_ID_EFAR , + .device =PCI_DEVICE_ID_EFAR_SLC90E66_1 , + .name ="SLC90E66" , + .init_chipset = init_chipset_slc90e66, + .init_hwif = init_hwif_slc90e66, + .init_dma = init_dma_slc90e66, + .channels =2 , + .autodma =AUTODMA , + .enablebits = {{0x41 ,0x80 ,0x80 }, {0x43 ,0x80 ,0x80 }}, + .bootable =ON_BOARD , },{ - vendor:0 , - device:0 , - channels:0 , - bootable:EOL , + .bootable =EOL , } };
drivers/ide/pci/trm290.h renamed from drivers/ide/pci/trm290.h.old +9 -16
@@ -9,23 +9,16 @@static ide_pci_device_t trm290_chipsets[]__devinitdata = { {/* 0 */ - vendor:PCI_VENDOR_ID_TEKRAM , - device:PCI_DEVICE_ID_TEKRAM_DC290 , - name:"TRM290" , - init_chipset:NULL , - init_iops:NULL , - init_hwif: init_hwif_trm290, - init_dma:NULL , - channels:2 , - autodma:NOAUTODMA , - enablebits: {{0x00 ,0x00 ,0x00 }, {0x00 ,0x00 ,0x00 }}, - bootable:ON_BOARD , - extra:0 , + .vendor =PCI_VENDOR_ID_TEKRAM , + .device =PCI_DEVICE_ID_TEKRAM_DC290 , + .name ="TRM290" , + .init_hwif = init_hwif_trm290, + .channels =2 , + .autodma =NOAUTODMA , + .enablebits = {{0x00 ,0x00 ,0x00 }, {0x00 ,0x00 ,0x00 }}, + .bootable =ON_BOARD , },{ - vendor:0 , - device:0 , - channels:0 , - bootable:EOL , + .bootable =EOL , } };
drivers/ide/pci/via82cxxx.h renamed from drivers/ide/pci/via82cxxx.h.old +24 -32
70 lines not on this page · raw message
Signature · 3 lines
They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin, Historical Review of Pennsylvania, 1759