All of lore.kernel.org
 help / color / mirror / Atom feed
From: greg@kroah.com (Greg KH)
To: linux-kernel@vger.kernel.org, sensors@Stimpy.netroedge.com
Cc: Rusty Russell <rusty@rustcorp.com.au>
Subject: [PATCH] i2c driver fixes for 2.6.1
Date: Thu, 19 May 2005 06:24:36 +0000	[thread overview]
Message-ID: <20040120220750.GA3944@kroah.com> (raw)
In-Reply-To: <20040120230322.24cbe005.khali@linux-fr.org>

On Tue, Jan 20, 2004 at 11:03:22PM +0100, Jean Delvare wrote:
> Quoting myself:
> 
> > (...) Greg, could
> > you please apply the following patch to the "porting-clients" document
> > so that at least the new drivers don't need to be converted
> > afterwards?
> > 
> >  Documentation/i2c/porting-clients |    5 ++++-
> >  1 files changed, 4 insertions(+), 1 deletion(-)
> > 
> > 
> > diff -Nru a/Documentation/i2c/porting-clients b/Documentation/i2c/porting-clients
> > --- a/Documentation/i2c/porting-clients	Mon Jan 19 15:33:17 2004
> > +++ b/Documentation/i2c/porting-clients	Mon Jan 19 15:33:17 2004
> > @@ -92,7 +92,10 @@
> >    i2c_get_clientdata(client) instead.
> >  
> >  * [Interface] Init function should not print anything. Make sure
> > -  there is a MODULE_LICENSE() line.
> > +  there is a MODULE_LICENSE() line. MODULE_PARM() is replaced
> > +  by module_param(). Note that module_param has a third parameter,
> > +  that you should set to 0 by default. See
> > include/linux/moduleparam.h+  for details.
> >  
> >  Coding policy:
> 
> On second thought I think I shouldn't have done that change. I2c chip
> drivers use SENSORS_INSMOD_* macros which in the end include
> MODULE_PARM() calls.
> 
> Quoting Rusty Russell: "However, I never implemented mixing old
> and new style in the same module, so if you're adding a parameter, it
> makes sense to convert them all."
> 
> So maybe I shouldn't suggest that new drivers use the new style, since
> they will mix old and new in this case. What about forgetting about that
> doc change for now? Sorry for the trouble, I should have thought about
> that before submitting.

Heh, feel free to port the SENSORS_INSMOD_* crap too if you want to.  I
really hate that code, and want to drop it entirely in 2.7 if
possible...

Or just send me a patch, backing out your change, I'll apply that :)

thanks,

greg k-h

WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org, sensors@Stimpy.netroedge.com
Cc: Rusty Russell <rusty@rustcorp.com.au>
Subject: Re: [PATCH] i2c driver fixes for 2.6.1
Date: Tue, 20 Jan 2004 14:07:50 -0800	[thread overview]
Message-ID: <20040120220750.GA3944@kroah.com> (raw)
In-Reply-To: <20040120230322.24cbe005.khali@linux-fr.org>

On Tue, Jan 20, 2004 at 11:03:22PM +0100, Jean Delvare wrote:
> Quoting myself:
> 
> > (...) Greg, could
> > you please apply the following patch to the "porting-clients" document
> > so that at least the new drivers don't need to be converted
> > afterwards?
> > 
> >  Documentation/i2c/porting-clients |    5 ++++-
> >  1 files changed, 4 insertions(+), 1 deletion(-)
> > 
> > 
> > diff -Nru a/Documentation/i2c/porting-clients b/Documentation/i2c/porting-clients
> > --- a/Documentation/i2c/porting-clients	Mon Jan 19 15:33:17 2004
> > +++ b/Documentation/i2c/porting-clients	Mon Jan 19 15:33:17 2004
> > @@ -92,7 +92,10 @@
> >    i2c_get_clientdata(client) instead.
> >  
> >  * [Interface] Init function should not print anything. Make sure
> > -  there is a MODULE_LICENSE() line.
> > +  there is a MODULE_LICENSE() line. MODULE_PARM() is replaced
> > +  by module_param(). Note that module_param has a third parameter,
> > +  that you should set to 0 by default. See
> > include/linux/moduleparam.h+  for details.
> >  
> >  Coding policy:
> 
> On second thought I think I shouldn't have done that change. I2c chip
> drivers use SENSORS_INSMOD_* macros which in the end include
> MODULE_PARM() calls.
> 
> Quoting Rusty Russell: "However, I never implemented mixing old
> and new style in the same module, so if you're adding a parameter, it
> makes sense to convert them all."
> 
> So maybe I shouldn't suggest that new drivers use the new style, since
> they will mix old and new in this case. What about forgetting about that
> doc change for now? Sorry for the trouble, I should have thought about
> that before submitting.

Heh, feel free to port the SENSORS_INSMOD_* crap too if you want to.  I
really hate that code, and want to drop it entirely in 2.7 if
possible...

Or just send me a patch, backing out your change, I'll apply that :)

thanks,

greg k-h

  reply	other threads:[~2005-05-19  6:24 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-19 23:57 [BK PATCH] i2c driver fixes for 2.6.1 Greg KH
2005-05-19  6:24 ` Greg KH
2004-01-19 23:59 ` [PATCH] " Greg KH
2005-05-19  6:24   ` Greg KH
2004-01-19 23:59   ` Greg KH
2005-05-19  6:24     ` Greg KH
2004-01-19 23:59     ` Greg KH
2005-05-19  6:24       ` Greg KH
2004-01-19 23:59       ` Greg KH
2005-05-19  6:24         ` Greg KH
2004-01-19 23:59         ` Greg KH
2005-05-19  6:24           ` Greg KH
2004-01-19 23:59           ` Greg KH
2005-05-19  6:24             ` Greg KH
2004-01-19 23:59             ` Greg KH
2005-05-19  6:24               ` Greg KH
2004-01-19 23:59               ` Greg KH
2005-05-19  6:24                 ` Greg KH
2004-01-19 23:59                 ` Greg KH
2005-05-19  6:24                   ` Greg KH
2004-01-19 23:59                   ` Greg KH
2005-05-19  6:24                     ` Greg KH
2004-01-19 23:59                     ` Greg KH
2005-05-19  6:24                       ` Greg KH
2004-01-19 23:59                       ` Greg KH
2005-05-19  6:24                         ` Greg KH
2004-01-19 23:59                         ` Greg KH
2005-05-19  6:24                           ` Greg KH
2004-01-19 23:59                           ` Greg KH
2005-05-19  6:24                             ` Greg KH
2004-01-19 23:59                             ` Greg KH
2005-05-19  6:24                               ` Greg KH
2004-01-19 23:59                               ` Greg KH
2005-05-19  6:24                                 ` Greg KH
2004-01-19 23:59                                 ` Greg KH
2005-05-19  6:24                                   ` Greg KH
2004-01-19 23:59                                   ` Greg KH
2005-05-19  6:24                                     ` Greg KH
2004-01-19 23:59                                     ` Greg KH
2005-05-19  6:24                                       ` Greg KH
2004-01-19 23:59                                       ` Greg KH
2005-05-19  6:24                                         ` Greg KH
2004-01-19 23:59                                         ` Greg KH
2005-05-19  6:24                                           ` Greg KH
2004-01-19 23:59                                           ` Greg KH
2005-05-19  6:24                                             ` Greg KH
2004-01-19 23:59                                             ` Greg KH
2005-05-19  6:24                                               ` Greg KH
2004-01-19 23:59                                               ` Greg KH
2005-05-19  6:24                                                 ` Greg KH
2004-01-19 23:59                                                 ` Greg KH
2005-05-19  6:24                                                   ` Greg KH
2004-01-19 23:59                                                   ` Greg KH
2005-05-19  6:24                                                     ` Greg KH
2004-01-19 23:59                                                     ` Greg KH
2005-05-19  6:24                                                       ` Greg KH
2004-01-19 23:59                                                       ` Greg KH
2005-05-19  6:24                                                         ` Greg KH
2004-01-19 23:59                                                         ` Greg KH
2005-05-19  6:24                                                           ` Greg KH
2004-01-21 21:50                                                 ` Jean Delvare
2005-05-19  6:24                                                   ` Jean Delvare
2004-01-21 23:56                                                   ` Greg KH
2005-05-19  6:24                                                     ` Greg KH
2004-01-31  8:56                                                     ` Jean Delvare
2005-05-19  6:24                                                       ` Jean Delvare
2004-01-31 15:23                                                       ` Greg KH
2005-05-19  6:24                                                         ` Greg KH
2004-01-20 22:03     ` Jean Delvare
2005-05-19  6:24       ` Jean Delvare
2004-01-20 22:07       ` Greg KH [this message]
2005-05-19  6:24         ` Greg KH
2004-01-21 20:47         ` Jean Delvare
2005-05-19  6:24           ` Jean Delvare
2004-01-24  1:14           ` Greg KH
2005-05-19  6:24             ` Greg KH

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=20040120220750.GA3944@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=sensors@Stimpy.netroedge.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.