From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933610Ab0EYSZQ (ORCPT ); Tue, 25 May 2010 14:25:16 -0400 Received: from cantor2.suse.de ([195.135.220.15]:36634 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933413Ab0EYSZN (ORCPT ); Tue, 25 May 2010 14:25:13 -0400 Date: Tue, 25 May 2010 20:25:11 +0200 Message-ID: From: Takashi Iwai To: H Hartley Sweeten Cc: "linux-kernel@vger.kernel.org" , "alsa-devel@alsa-project.org" , "perex@perex.cz" Subject: Re: [PATCH] aw2-alsa.c: use pci_ids.h defines and fix checkpatch.pl noise In-Reply-To: <0D753D10438DA54287A00B0270842697636F323864@AUSP01VMBX24.collaborationhost.net> References: <0D753D10438DA54287A00B0270842697636F323864@AUSP01VMBX24.collaborationhost.net> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Fri, 21 May 2010 17:35:03 -0500, H Hartley Sweeten wrote: > > Use the VENDOR/DEVICE ids provided in pci_ids.h instead of creating > local ids of the same values. > > Also, fix the following checkpatch.pl warnings: > > WARNING: Use #include instead of > WARNING: unnecessary whitespace before a quoted newline > > Signed-off-by: H Hartley Sweeten > Cc: Jaroslav Kysela > Cc: Takashi Iwai Applied now. Thanks. Takashi > --- > > diff --git a/sound/pci/aw2/aw2-alsa.c b/sound/pci/aw2/aw2-alsa.c > index 67921f9..c150022 100644 > --- a/sound/pci/aw2/aw2-alsa.c > +++ b/sound/pci/aw2/aw2-alsa.c > @@ -26,7 +26,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include > @@ -44,9 +44,6 @@ MODULE_LICENSE("GPL"); > /********************************* > * DEFINES > ********************************/ > -#define PCI_VENDOR_ID_SAA7146 0x1131 > -#define PCI_DEVICE_ID_SAA7146 0x7146 > - > #define CTL_ROUTE_ANALOG 0 > #define CTL_ROUTE_DIGITAL 1 > > @@ -165,7 +162,7 @@ module_param_array(enable, bool, NULL, 0444); > MODULE_PARM_DESC(enable, "Enable Audiowerk2 soundcard."); > > static DEFINE_PCI_DEVICE_TABLE(snd_aw2_ids) = { > - {PCI_VENDOR_ID_SAA7146, PCI_DEVICE_ID_SAA7146, 0, 0, > + {PCI_VENDOR_ID_PHILIPS, PCI_DEVICE_ID_PHILIPS_SAA7146, 0, 0, > 0, 0, 0}, > {0} > }; > @@ -419,7 +416,7 @@ static int snd_aw2_pcm_playback_open(struct snd_pcm_substream *substream) > { > struct snd_pcm_runtime *runtime = substream->runtime; > > - snd_printdd(KERN_DEBUG "aw2: Playback_open \n"); > + snd_printdd(KERN_DEBUG "aw2: Playback_open\n"); > runtime->hw = snd_aw2_playback_hw; > return 0; > } > @@ -435,7 +432,7 @@ static int snd_aw2_pcm_capture_open(struct snd_pcm_substream *substream) > { > struct snd_pcm_runtime *runtime = substream->runtime; > > - snd_printdd(KERN_DEBUG "aw2: Capture_open \n"); > + snd_printdd(KERN_DEBUG "aw2: Capture_open\n"); > runtime->hw = snd_aw2_capture_hw; > return 0; > }