linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <gregkh@suse.de>
To: Jean Delvare <khali@linux-fr.org>
Cc: Lars-Peter Clausen <lars@metafoo.de>,
	Grant Likely <grant.likely@secretlab.ca>,
	Jonathan Cameron <jic23@kernel.org>,
	Michael Hennerich <Michael.Hennerich@analog.com>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-i2c@vger.kernel.org,
	spi-devel-general@lists.sourceforge.net
Subject: Re: [PATCH 0/5] Generalize module_platform_driver
Date: Wed, 16 Nov 2011 08:37:28 -0800	[thread overview]
Message-ID: <20111116163728.GA7196@suse.de> (raw)
In-Reply-To: <20111116173618.0a847852@endymion.delvare>

On Wed, Nov 16, 2011 at 05:36:18PM +0100, Jean Delvare wrote:
> On Wed, 16 Nov 2011 08:02:06 -0800, Greg KH wrote:
> > On Wed, Nov 16, 2011 at 10:13:34AM +0100, Lars-Peter Clausen wrote:
> > > Grant Likely recently introduced the module_platform_driver macro which can be
> > > used to eliminate a few lines on boilerplate code in platform driver modules.
> > > The same approach can be used to do the same for other bus type drivers.
> > > 
> > > The first patch of this series generalizes the module_platform_driver macro and
> > > introduces the module_driver macro. It is similar to module_platform_driver
> > > macro but has two additional parameters to pass in the driver register and
> > > unregister function. The intend is that this macro is used to construct bus
> > > specific macros for generating the driver register/unregister boilerplate code.
> > > 
> > > The next two patches in this series add the module_i2c_driver and
> > > module_spi_driver macro which use the module_driver macro to generate the I2C
> > > and SPI driver boilerplate code.
> > > 
> > > The last two patches convert the driver found in the IIO framework to use the
> > > new module_i2c_driver and module_spi_driver macros to demonstrate their
> > > potential and remove over 700 lines of code.
> > > 
> > > While this series only introduces these kind of helper macros for I2C and SPI
> > > bus drivers the same scheme should be applicable to most other bus driver types.
> > > For example PCI and USB seem to be good candidates.
> > > 
> > > It probably makes sense to merge the first three patches together. The last two
> > > can probably, since this is not urgent, wait until the first three have reached
> > > mainline.
> > 
> > Nice, I like this, unless people object, I'll merge the first patch to
> > the driver-core tree.
> > 
> > I'll gladly take the i2c and spi patches as well if the subsystem
> > maintainers there don't object, and I'll work on the USB patch as well.
> 
> No objection from me (for i2c).

Wonderful, thanks for letting me know.

greg k-h

  reply	other threads:[~2011-11-16 16:37 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-16  9:13 [PATCH 0/5] Generalize module_platform_driver Lars-Peter Clausen
2011-11-16  9:13 ` [PATCH 1/5] drivercore: " Lars-Peter Clausen
     [not found]   ` <1321434819-23678-2-git-send-email-lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
2011-11-16 17:11     ` Grant Likely
     [not found]       ` <CACxGe6twCU9Nb+b00ei83jxaz0YnVa6nT0ra6Kp0c4PO7hjT6Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-17  6:51         ` Jonathan Cameron
2011-11-17 20:04     ` Greg KH
2012-01-13  9:07     ` Guennadi Liakhovetski
2012-01-13 18:23       ` Greg KH
2011-11-16  9:13 ` [PATCH 2/5] I2C: Add helper macro for i2c_driver boilerplate Lars-Peter Clausen
     [not found]   ` <1321434819-23678-3-git-send-email-lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
2011-11-16 17:12     ` Grant Likely
     [not found]       ` <CACxGe6toOFjOdP7-oZ4O2J=g2U+Y+aWOUzHDoCaX6goAs6zKsQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-17  6:47         ` Jonathan Cameron
2011-11-16  9:13 ` [PATCH 3/5] SPI: Add helper macro for spi_driver boilerplate Lars-Peter Clausen
     [not found]   ` <1321434819-23678-4-git-send-email-lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
2011-11-16 17:12     ` Grant Likely
     [not found]       ` <CACxGe6tz0ppZj=a_e4rkgNxzhQ4MSCtXKXGk_dPov80QDU4MCg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-24  0:13         ` Ben Dooks
     [not found]           ` <20111124001342.GN19115-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org>
2011-11-24  7:29             ` Lars-Peter Clausen
2011-11-16  9:13 ` [PATCH 4/5] staging:iio: Use module_i2c_driver to register I2C drivers Lars-Peter Clausen
     [not found]   ` <1321434819-23678-5-git-send-email-lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
2011-11-17  6:50     ` Jonathan Cameron
     [not found] ` <1321434819-23678-1-git-send-email-lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
2011-11-16  9:13   ` [PATCH 5/5] staging:iio: Use module_spi_driver to register SPI driver Lars-Peter Clausen
2011-11-16 17:15     ` Grant Likely
     [not found]       ` <CACxGe6su+18Ct6E7z8VfbXcOwftxMm49A9Q49Eat8+StT17F4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-17  6:48         ` Jonathan Cameron
     [not found]     ` <1321434819-23678-6-git-send-email-lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
2011-11-17  6:49       ` Jonathan Cameron
2011-11-16 16:02   ` [PATCH 0/5] Generalize module_platform_driver Greg KH
2011-11-16 16:36     ` Jean Delvare
2011-11-16 16:37       ` Greg KH [this message]
     [not found]         ` <20111116163728.GA7196-l3A5Bk7waGM@public.gmane.org>
2011-11-16 17:13           ` Grant Likely
     [not found]             ` <CACxGe6sMJN6ZuF2E5vtbf-jquJRUPizzo_Ttdy1UkwtMO4axUA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-17 19:49               ` Greg KH
2011-11-16 20:14   ` Wolfram Sang

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=20111116163728.GA7196@suse.de \
    --to=gregkh@suse.de \
    --cc=Michael.Hennerich@analog.com \
    --cc=grant.likely@secretlab.ca \
    --cc=jic23@kernel.org \
    --cc=khali@linux-fr.org \
    --cc=lars@metafoo.de \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=spi-devel-general@lists.sourceforge.net \
    /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).