From: Takashi Iwai Subject: Re: [PATCH] atiixp: change parameter to macro define Date: Fri, 23 Jan 2009 08:48:40 +0100 Message-ID: References: <49793013.30504@embeddedalley.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 4D0C2103804 for ; Fri, 23 Jan 2009 08:48:40 +0100 (CET) In-Reply-To: <49793013.30504@embeddedalley.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Matthew Ranostay Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 22 Jan 2009 21:48:51 -0500, Matthew Ranostay wrote: > > Change 0x15bd parameter to PCI_VENDOR_ID_DFI define. > > Signed-off-by: Matthew Ranostay Well, I won't apply this. PCI_VENDOR_ID_* isn't always good especially for some table. You'll often need to check a certain PCI (SS)ID, and the literal makes the comparison hard. OTOH, with PCI_VENDOR_ID_*, a number-typo can be avoided better, so it's good as a first place. Takashi > > diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c > index 9ce8548..6baa6c4 100644 > --- a/sound/pci/atiixp.c > +++ b/sound/pci/atiixp.c > @@ -297,7 +297,7 @@ static struct pci_device_id snd_atiixp_ids[] = { > MODULE_DEVICE_TABLE(pci, snd_atiixp_ids); > > static struct snd_pci_quirk atiixp_quirks[] __devinitdata = { > - SND_PCI_QUIRK(0x15bd, 0x3100, "DFI RS482", 0), > + SND_PCI_QUIRK(PCI_VENDOR_ID_DFI, 0x3100, "DFI RS482", 0), > { } /* terminator */ > }; > >