From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: [PATCH 18/19] drivers/video: Use PCI_VDEVICE Date: Fri, 26 Jun 2009 09:35:26 -0700 Message-ID: <1246034126.18587.19.camel@Joe-Laptop.home> References: <198c226b3dfd003881e7f95b3fbbc8d433804b01.1245906153.git.joe@perches.com> <20090626095454.GH9980@sci.fi> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20090626095454.GH9980@sci.fi> Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="utf-8" To: Ville =?ISO-8859-1?Q?Syrj=E4l=E4?= Cc: linux-kernel@vger.kernel.org, Paul Mackerras , Benjamin Herrenschmidt , Russell King , Antonino Daplas , Petr Vandrovec , Thomas Winischhofer , linux-fbdev-devel@lists.sourceforge.net On Fri, 2009-06-26 at 12:54 +0300, Ville Syrj=C3=A4l=C3=A4 wrote: > Perhaps there should be a PCI_VDDEVICE() or something for this type o= f > stuff? Would make things even shorter. drivers/edac/edac_core.h has: #define PCI_VEND_DEV(vend, dev) PCI_VENDOR_ID_ ## vend, \ PCI_DEVICE_ID_ ## vend ## _ ## dev Try submitting a patch and see what happens... > Also PCI_VDEVICE() does not use named initializers for some reason. > Might be worth fixing. Perhaps that's to avoid mixing named and unnamed initializers. > It seems your script missed atyfb. It could use PCI_VDEVICE() too. Can you show an example please?