C99 designated initializers for drivers/ide/pci (1 of 2)
PATCH 1/1 C99 designated initializers for drivers/ide/pci (1 of 2)
Hi.
Here's the first of two patches that switch the header files in drivers/ide/pci to use C99 designated initializers. The patch is against 2.5.47.
This mail holds patches for drivers starting with the letters [a-n].
Art Haas
drivers/ide/pci/adma100.h renamed from drivers/ide/pci/adma100.h.old +17 -17
@@ -12,24 +12,24 @@static ide_pci_device_t pdcadma_chipsets[]__devinitdata = { { - vendor:PCI_VENDOR_ID_PDC , - device:PCI_DEVICE_ID_PDC_1841 , - name:"ADMA100" , - 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 ="ADMA100" , + .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:0 , - device:0 , - channels:0 , - bootable:EOL , + .vendor =0 , + .device =0 , + .channels =0 , + .bootable =EOL , } }
drivers/ide/pci/aec62xx.h renamed from drivers/ide/pci/aec62xx.h.old +69 -69
154 lines not on this page · raw message
drivers/ide/pci/alim15x3.h renamed from drivers/ide/pci/alim15x3.h.old +20 -20
@@ -17,10 +17,10 @@static ide_pci_host_proc_t ali_procs[]__initdata = { { - name:"ali" , - set:1 , - get_info: ali_get_info, - parent:NULL , + .name ="ali" , + .set =1 , + .get_info = ali_get_info, + .parent =NULL , }, };#endif /* DISPLAY_ALI_TIMINGS && CONFIG_PROC_FS */
@@ -32,23 +32,23 @@static ide_pci_device_t ali15x3_chipsets[]__devinitdata = { {/* 0 */ - vendor:PCI_VENDOR_ID_AL , - device:PCI_DEVICE_ID_AL_M5229 , - name:"ALI15X3" , - init_chipset: init_chipset_ali15x3, - init_iops:NULL , - init_hwif: init_hwif_ali15x3, - init_dma: init_dma_ali15x3, - channels:2 , - autodma:AUTODMA , - enablebits: {{0x00 ,0x00 ,0x00 }, {0x00 ,0x00 ,0x00 }}, - bootable:ON_BOARD , - extra:0 + .vendor =PCI_VENDOR_ID_AL , + .device =PCI_DEVICE_ID_AL_M5229 , + .name ="ALI15X3" , + .init_chipset = init_chipset_ali15x3, + .init_iops =NULL , + .init_hwif = init_hwif_ali15x3, + .init_dma = init_dma_ali15x3, + .channels =2 , + .autodma =AUTODMA , + .enablebits = {{0x00 ,0x00 ,0x00 }, {0x00 ,0x00 ,0x00 }}, + .bootable =ON_BOARD , + .extra =0 },{ - vendor:0 , - device:0 , - channels:0 , - bootable:EOL , + .vendor =0 , + .device =0 , + .channels =0 , + .bootable =EOL , } };
drivers/ide/pci/amd74xx.h renamed from drivers/ide/pci/amd74xx.h.old +68 -68
153 lines not on this page · raw message
drivers/ide/pci/cmd640.h renamed from drivers/ide/pci/cmd640.h.old +16 -16
@@ -9,23 +9,23 @@static ide_pci_device_t cmd640_chipsets[]__initdata = { { - vendor:PCI_VENDOR_ID_CMD , - device:PCI_DEVICE_ID_CMD_640 , - name:"CMD640" , - init_setup:NULL , - init_chipset:NULL , - init_iops:NULL , - init_hwif:IDE_IGNORE , - init_dma:NULL , - channels:2 , - autodma:NODMA , - enablebits: {{0x00 ,0x00 ,0x00 }, {0x00 ,0x00 ,0x00 }}, - bootable:ON_BOARD , - extra:0 + .vendor =PCI_VENDOR_ID_CMD , + .device =PCI_DEVICE_ID_CMD_640 , + .name ="CMD640" , + .init_setup =NULL , + .init_chipset =NULL , + .init_iops =NULL , + .init_hwif =IDE_IGNORE , + .init_dma =NULL , + .channels =2 , + .autodma =NODMA , + .enablebits = {{0x00 ,0x00 ,0x00 }, {0x00 ,0x00 ,0x00 }}, + .bootable =ON_BOARD , + .extra =0 },{ - vendor:0 , - device:0 , - bootable:EOL , + .vendor =0 , + .device =0 , + .bootable =EOL , } }
drivers/ide/pci/cmd64x.h renamed from drivers/ide/pci/cmd64x.h.old +56 -56
128 lines not on this page · raw message
drivers/ide/pci/cs5530.h renamed from drivers/ide/pci/cs5530.h.old +20 -20
@@ -17,10 +17,10 @@static ide_pci_host_proc_t cs5530_procs[]__initdata = { { - name:"cs5530" , - set:1 , - get_info: cs5530_get_info, - parent:NULL , + .name ="cs5530" , + .set =1 , + .get_info = cs5530_get_info, + .parent =NULL , }, };#endif /* DISPLAY_CS5530_TIMINGS && CONFIG_PROC_FS */
@@ -31,23 +31,23 @@static ide_pci_device_t cs5530_chipsets[]__devinitdata = { {/* 0 */ - vendor:PCI_VENDOR_ID_CYRIX , - device:PCI_DEVICE_ID_CYRIX_5530_IDE , - name:"CS5530" , - init_chipset: init_chipset_cs5530, - init_iops:NULL , - init_hwif: init_hwif_cs5530, - init_dma: init_dma_cs5530, - channels:2 , - autodma:AUTODMA , - enablebits: {{0x00 ,0x00 ,0x00 }, {0x00 ,0x00 ,0x00 }}, - bootable:ON_BOARD , - extra:0 , + .vendor =PCI_VENDOR_ID_CYRIX , + .device =PCI_DEVICE_ID_CYRIX_5530_IDE , + .name ="CS5530" , + .init_chipset = init_chipset_cs5530, + .init_iops =NULL , + .init_hwif = init_hwif_cs5530, + .init_dma = init_dma_cs5530, + .channels =2 , + .autodma =AUTODMA , + .enablebits = {{0x00 ,0x00 ,0x00 }, {0x00 ,0x00 ,0x00 }}, + .bootable =ON_BOARD , + .extra =0 , },{ - vendor:0 , - device:0 , - channels:0 , - bootable:EOL , + .vendor =0 , + .device =0 , + .channels =0 , + .bootable =EOL , } };
drivers/ide/pci/cy82c693.h renamed from drivers/ide/pci/cy82c693.h.old +16 -16
@@ -70,23 +70,23 @@static ide_pci_device_t cy82c693_chipsets[]__devinitdata = { {/* 0 */ - vendor:PCI_VENDOR_ID_CONTAQ , - device:PCI_DEVICE_ID_CONTAQ_82C693 , - name:"CY82C693" , - init_chipset: init_chipset_cy82c693, - init_iops: init_iops_cy82c693, - init_hwif: init_hwif_cy82c693, - init_dma:NULL , - channels:1 , - autodma:AUTODMA , - enablebits: {{0x00 ,0x00 ,0x00 }, {0x00 ,0x00 ,0x00 }}, - bootable:ON_BOARD , - extra:0 , + .vendor =PCI_VENDOR_ID_CONTAQ , + .device =PCI_DEVICE_ID_CONTAQ_82C693 , + .name ="CY82C693" , + .init_chipset = init_chipset_cy82c693, + .init_iops = init_iops_cy82c693, + .init_hwif = init_hwif_cy82c693, + .init_dma =NULL , + .channels =1 , + .autodma =AUTODMA , + .enablebits = {{0x00 ,0x00 ,0x00 }, {0x00 ,0x00 ,0x00 }}, + .bootable =ON_BOARD , + .extra =0 , },{ - vendor:0 , - device:0 , - channels:0 , - bootable:EOL , + .vendor =0 , + .device =0 , + .channels =0 , + .bootable =EOL , } };
drivers/ide/pci/generic.h renamed from drivers/ide/pci/generic.h.old +128 -128
277 lines not on this page · raw message
drivers/ide/pci/hpt34x.h renamed from drivers/ide/pci/hpt34x.h.old +20 -20
@@ -23,10 +23,10 @@static ide_pci_host_proc_t hpt34x_procs[]__initdata = { { - name:"hpt34x" , - set:1 , - get_info: hpt34x_get_info, - parent:NULL , + .name ="hpt34x" , + .set =1 , + .get_info = hpt34x_get_info, + .parent =NULL , }, };#endif /* defined(DISPLAY_HPT34X_TIMINGS) && defined(CONFIG_PROC_FS) */
@@ -37,23 +37,23 @@static ide_pci_device_t hpt34x_chipsets[]__devinitdata = { {/* 0 */ - vendor:PCI_VENDOR_ID_TTI , - device:PCI_DEVICE_ID_TTI_HPT343 , - name:"HPT34X" , - init_chipset: init_chipset_hpt34x, - init_iops:NULL , - init_hwif: init_hwif_hpt34x, - init_dma: init_dma_hpt34x, - channels:2 , - autodma:NOAUTODMA , - enablebits: {{0x00 ,0x00 ,0x00 }, {0x00 ,0x00 ,0x00 }}, - bootable:NEVER_BOARD , - extra:16 + .vendor =PCI_VENDOR_ID_TTI , + .device =PCI_DEVICE_ID_TTI_HPT343 , + .name ="HPT34X" , + .init_chipset = init_chipset_hpt34x, + .init_iops =NULL , + .init_hwif = init_hwif_hpt34x, + .init_dma = init_dma_hpt34x, + .channels =2 , + .autodma =NOAUTODMA , + .enablebits = {{0x00 ,0x00 ,0x00 }, {0x00 ,0x00 ,0x00 }}, + .bootable =NEVER_BOARD , + .extra =16 },{ - vendor:0 , - device:0 , - channels:0 , - bootable:EOL , + .vendor =0 , + .device =0 , + .channels =0 , + .bootable =EOL , } };
drivers/ide/pci/hpt366.h renamed from drivers/ide/pci/hpt366.h.old +73 -73
163 lines not on this page · raw message
drivers/ide/pci/it8172.h renamed from drivers/ide/pci/it8172.h.old +17 -17
@@ -21,24 +21,24 @@static ide_pci_device_t it8172_chipsets[]__devinitdata = { {/* 0 */ - vendor:PCI_VENDOR_ID_ITE , - device:PCI_DEVICE_ID_ITE_IT8172G , - name:"IT8172G" , - init_setup: init_setup_it8172, - init_chipset: init_chipset_it8172, - init_iops:NULL , - init_hwif: init_hwif_it8172, - init_dma: init_dma_it8172, - channels:2 , - autodma:AUTODMA , - enablebits: {{0x00 ,0x00 ,0x00 }, {0x40 ,0x00 ,0x01 }}, - bootable:ON_BOARD , - extra:0 , + .vendor =PCI_VENDOR_ID_ITE , + .device =PCI_DEVICE_ID_ITE_IT8172G , + .name ="IT8172G" , + .init_setup = init_setup_it8172, + .init_chipset = init_chipset_it8172, + .init_iops =NULL , + .init_hwif = init_hwif_it8172, + .init_dma = init_dma_it8172, + .channels =2 , + .autodma =AUTODMA , + .enablebits = {{0x00 ,0x00 ,0x00 }, {0x40 ,0x00 ,0x01 }}, + .bootable =ON_BOARD , + .extra =0 , },{ - vendor:0 , - device:0 , - channels:0 , - bootable:EOL , + .vendor =0 , + .device =0 , + .channels =0 , + .bootable =EOL , } };
drivers/ide/pci/ns87415.h renamed from drivers/ide/pci/ns87415.h.old +16 -16
@@ -10,23 +10,23 @@static ide_pci_device_t ns87415_chipsets[]__devinitdata = { {/* 0 */ - vendor:PCI_VENDOR_ID_NS , - device:PCI_DEVICE_ID_NS_87415 , - name:"NS87415" , - init_chipset:NULL , - init_iops:NULL , - init_hwif: init_hwif_ns87415, - init_dma: init_dma_ns87415, - channels:2 , - autodma:AUTODMA , - enablebits: {{0x00 ,0x00 ,0x00 }, {0x00 ,0x00 ,0x00 }}, - bootable:ON_BOARD , - extra:0 , + .vendor =PCI_VENDOR_ID_NS , + .device =PCI_DEVICE_ID_NS_87415 , + .name ="NS87415" , + .init_chipset =NULL , + .init_iops =NULL , + .init_hwif = init_hwif_ns87415, + .init_dma = init_dma_ns87415, + .channels =2 , + .autodma =AUTODMA , + .enablebits = {{0x00 ,0x00 ,0x00 }, {0x00 ,0x00 ,0x00 }}, + .bootable =ON_BOARD , + .extra =0 , },{ - vendor:0 , - device:0 , - channels:0 , - bootable:EOL , + .vendor =0 , + .device =0 , + .channels =0 , + .bootable =EOL , } };
drivers/ide/pci/nvidia.h renamed from drivers/ide/pci/nvidia.h.old +16 -16
@@ -17,10 +17,10 @@static ide_pci_host_proc_t nforce_procs[]__initdata = { { - name:"nforce" , - set:1 , - get_info: nforce_get_info, - parent:NULL , + .name ="nforce" , + .set =1 , + .get_info = nforce_get_info, + .parent =NULL , }, };#endif /* defined(DISPLAY_NFORCE_TIMINGS) && defined(CONFIG_PROC_FS) */
@@ -31,18 +31,18 @@static ide_pci_device_t nvidia_chipsets[]__devinitdata = { { - vendor:PCI_VENDOR_ID_NVIDIA , - device:PCI_DEVICE_ID_NVIDIA_NFORCE_IDE , - name:"NFORCE" , - init_chipset: init_chipset_nforce, - init_iops:NULL , - init_hwif: init_hwif_nforce, - init_dma: init_dma_nforce, - channels:2 , - autodma:AUTODMA , - enablebits: {{0x50 ,0x01 ,0x01 }, {0x50 ,0x02 ,0x02 }}, - bootable:ON_BOARD , - extra:0 , + .vendor =PCI_VENDOR_ID_NVIDIA , + .device =PCI_DEVICE_ID_NVIDIA_NFORCE_IDE , + .name ="NFORCE" , + .init_chipset = init_chipset_nforce, + .init_iops =NULL , + .init_hwif = init_hwif_nforce, + .init_dma = init_dma_nforce, + .channels =2 , + .autodma =AUTODMA , + .enablebits = {{0x50 ,0x01 ,0x01 }, {0x50 ,0x02 ,0x02 }}, + .bootable =ON_BOARD , + .extra =0 , } };
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