public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
To: Art Haas <ahaas@airmail.net>
Cc: linux-kernel@vger.kernel.org, Linus Torvalds <torvalds@transmeta.com>
Subject: Re: [PATCH] C99 designated initializers for drivers/ide/pci (2 of 2)
Date: Mon, 11 Nov 2002 18:17:17 -0200	[thread overview]
Message-ID: <20021111201717.GH12732@conectiva.com.br> (raw)
In-Reply-To: <20021111155945.GK20969@debian>

Em Mon, Nov 11, 2002 at 09:59:45AM -0600, Art Haas escreveu:
> Here's the second patch for drivers/ide/pci that switch the header files
> (and two lines in serverworks.c) to use C99 designated initializers. The
> patches are against 2.5.47.

Art, comments below
 
> --- linux-2.5.47/drivers/ide/pci/opti621.h.old	2002-10-07 15:45:28.000000000 -0500
> +++ linux-2.5.47/drivers/ide/pci/opti621.h	2002-11-11 07:22:07.000000000 -0600
> @@ -11,38 +11,38 @@
>  
>  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_chipset	= NULL,
> +		.init_iops	= NULL,

Those two lines can be removed

> +		.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,

This one as well

>  	},{	/* 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_chipset	= NULL,
> +		.init_iops	= NULL,

Ditto

> +		.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,

Ditto

>  	},{
> -		vendor:		0,
> -		device:		0,
> -		channels:	0,
> -		bootable:	EOL,
> +		.vendor		= 0,
> +		.device		= 0,
> +		.channels	= 0,
> +		.bootable	= EOL,
>  	}

Here a { .bootable = EOL, } would do it, no need for the others

Ditto for the other patches that I just snipped

- Arnaldo

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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-11 15:59 [PATCH] C99 designated initializers for drivers/ide/pci (2 of 2) Art Haas
2002-11-11 20:17 ` Arnaldo Carvalho de Melo [this message]

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=20021111201717.GH12732@conectiva.com.br \
    --to=acme@conectiva.com.br \
    --cc=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