linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Art Haas <ahaas@airmail.net>
To: linux-kernel@vger.kernel.org
Cc: Linus Torvalds <torvalds@transmeta.com>
Subject: [PATCH] C99 initializers for drivers/ide/pci
Date: Wed, 11 Dec 2002 14:15:21 -0600	[thread overview]
Message-ID: <20021211201521.GE28537@debian> (raw)

Hi.

I think these two patches are needed (unless I've inadvertently reverted
something and am now patching back to what should be). These patches
convert the two files to use C99 initializers. The patches are against
2.5.51.

Art Haas

--- linux-2.5.51/drivers/ide/pci/cs5520.h.old	2002-11-29 09:23:59.000000000 -0600
+++ linux-2.5.51/drivers/ide/pci/cs5520.h	2002-12-10 13:52:04.000000000 -0600
@@ -17,10 +17,10 @@
 
 static ide_pci_host_proc_t cs5520_procs[] __initdata = {
 	{
-		name:		"cs5520",
-		set:		1,
-		get_info:	cs5520_get_info,
-		parent:		NULL,
+		.name		= "cs5520",
+		.set		= 1,
+		.get_info	= cs5520_get_info,
+		.parent		= NULL,
 	},
 };
 #endif  /* defined(DISPLAY_CS5520_TIMINGS) && defined(CONFIG_PROC_FS) */
@@ -31,32 +31,32 @@
 
 static ide_pci_device_t cyrix_chipsets[] __devinitdata = {
 	{
-		vendor:		PCI_VENDOR_ID_CYRIX,
-		device:		PCI_DEVICE_ID_CYRIX_5510,
-		name:		"Cyrix 5510",
-		init_chipset:	init_chipset_cs5520,
-		init_setup_dma: cs5520_init_setup_dma,
-		init_iops:	NULL,
-		init_hwif:	init_hwif_cs5520,
-		isa_ports:	1,
-		channels:	2,
-		autodma:	AUTODMA,
-		bootable:	ON_BOARD,
-		extra:		0,
+		.vendor		= PCI_VENDOR_ID_CYRIX,
+		.device		= PCI_DEVICE_ID_CYRIX_5510,
+		.name		= "Cyrix 5510",
+		.init_chipset	= init_chipset_cs5520,
+		.init_setup_dma = cs5520_init_setup_dma,
+		.init_iops	= NULL,
+		.init_hwif	= init_hwif_cs5520,
+		.isa_ports	= 1,
+		.channels	= 2,
+		.autodma	= AUTODMA,
+		.bootable	= ON_BOARD,
+		.extra		= 0,
 	},
 	{
-		vendor:		PCI_VENDOR_ID_CYRIX,
-		device:		PCI_DEVICE_ID_CYRIX_5520,
-		name:		"Cyrix 5520",
-		init_chipset:	init_chipset_cs5520,
-		init_setup_dma: cs5520_init_setup_dma,
-		init_iops:	NULL,
-		init_hwif:	init_hwif_cs5520,
-		isa_ports:	1,
-		channels:	2,
-		autodma:	AUTODMA,
-		bootable:	ON_BOARD,
-		extra:		0,
+		.vendor		= PCI_VENDOR_ID_CYRIX,
+		.device		= PCI_DEVICE_ID_CYRIX_5520,
+		.name		= "Cyrix 5520",
+		.init_chipset	= init_chipset_cs5520,
+		.init_setup_dma = cs5520_init_setup_dma,
+		.init_iops	= NULL,
+		.init_hwif	= init_hwif_cs5520,
+		.isa_ports	= 1,
+		.channels	= 2,
+		.autodma	= AUTODMA,
+		.bootable	= ON_BOARD,
+		.extra		= 0,
 	}
 };
 
--- linux-2.5.51/drivers/ide/pci/sc1200.h.old	2002-11-29 09:24:00.000000000 -0600
+++ linux-2.5.51/drivers/ide/pci/sc1200.h	2002-12-10 13:52:04.000000000 -0600
@@ -17,10 +17,10 @@
 
 static ide_pci_host_proc_t sc1200_procs[] __initdata = {
 	{
-		name:		"sc1200",
-		set:		1,
-		get_info:	sc1200_get_info,
-		parent:		NULL,
+		.name		= "sc1200",
+		.set		= 1,
+		.get_info	= sc1200_get_info,
+		.parent		= NULL,
 	},
 };
 #endif /* DISPLAY_SC1200_TIMINGS && CONFIG_PROC_FS */
@@ -31,23 +31,23 @@
 
 static ide_pci_device_t sc1200_chipsets[] __devinitdata = {
 	{	/* 0 */
-		vendor:		PCI_VENDOR_ID_NS,
-		device:		PCI_DEVICE_ID_NS_SCx200_IDE,
-		name:		"SC1200",
-		init_chipset:	init_chipset_sc1200,
-		init_iops:	NULL,
-		init_hwif:	init_hwif_sc1200,
-		init_dma:	init_dma_sc1200,
-		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_SCx200_IDE,
+		.name		= "SC1200",
+		.init_chipset	= init_chipset_sc1200,
+		.init_iops	= NULL,
+		.init_hwif	= init_hwif_sc1200,
+		.init_dma	= init_dma_sc1200,
+		.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,
 	}
 };
 
-- 
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

                 reply	other threads:[~2002-12-11 20:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021211201521.GE28537@debian \
    --to=ahaas@airmail.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).