linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: linux-pci@vger.kernel.org, Lars-Peter Clausen <lars@metafoo.de>,
	Felipe Balbi <balbi@ti.com>
Subject: Re: [PATCH] PCI: Add helper macro for pci_register_driver boilerplate
Date: Mon, 5 Dec 2011 10:38:22 -0800	[thread overview]
Message-ID: <20111205183822.GA7193@kroah.com> (raw)
In-Reply-To: <20111205102829.1a98d25d@jbarnes-desktop>

On Mon, Dec 05, 2011 at 10:28:29AM -0800, Jesse Barnes wrote:
> On Fri, 18 Nov 2011 10:12:49 -0800
> Greg KH <greg@kroah.com> wrote:
> 
> > From: Greg Kroah-Hartman <gregkh@suse.de>
> > 
> > This patch introduces the module_pci_driver macro which is a convenience
> > macro for PCI driver modules similar to module_platform_driver. It is
> > intended to be used by drivers which init/exit section does nothing but
> > register/unregister the PCI driver. By using this macro it is possible
> > to eliminate a few lines of boilerplate code per PCI driver.
> > 
> > Based on work done by Lars-Peter Clausen <lars@metafoo.de> for other
> > busses (i2c and spi).
> > 
> > Cc: Lars-Peter Clausen <lars@metafoo.de>
> > Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
> > 
> > ---
> > 
> > Jesse, I've added the same type of macros for i2c, spi, and usb to my
> > driver-core tree, and converted a number of drivers to these new macros.
> > If you give me the ack, I can add this patch to my tree as well.
> > 
> > I'll follow up this patch with an example showing how it works.
> > 
> > Comments?
> > 
> 
> Yeah, I have no problem with it.  You can queue it up with the other
> changes and add my acked-by to keep dependencies to a minimum.

Wonderful, will do.

greg k-h

      reply	other threads:[~2011-12-05 18:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-18 18:12 [PATCH] PCI: Add helper macro for pci_register_driver boilerplate Greg KH
2011-11-18 18:14 ` [PATCH] DWC3: use module_pci_driver Greg KH
2011-11-18 19:04   ` Felipe Balbi
2011-11-18 19:11     ` Greg KH
2011-11-18 19:22       ` Felipe Balbi
2011-12-05 18:28 ` [PATCH] PCI: Add helper macro for pci_register_driver boilerplate Jesse Barnes
2011-12-05 18:38   ` Greg KH [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=20111205183822.GA7193@kroah.com \
    --to=greg@kroah.com \
    --cc=balbi@ti.com \
    --cc=jbarnes@virtuousgeek.org \
    --cc=lars@metafoo.de \
    --cc=linux-pci@vger.kernel.org \
    /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).