Re: [PATCH 2.6.11-rc2] I2C: lm80 driver improvement - again...

2005-02-01 Thread Greg KH
On Sat, Jan 29, 2005 at 09:08:55PM -0500, Shawn Starr wrote: > Description: Cleanup some cluttered macros, add error checking for fan > divisor value set. > > Signed-off-by: Sytse Wielinga <[EMAIL PROTECTED]> > Signed-off-by: Aurelien Jarno <[EMAIL PROTECTED]> > Signed-off-by: Shawn Starr <[EMAIL

[PATCH 2.6.11-rc2] I2C: lm80 driver improvement - again...

2005-01-29 Thread Shawn Starr
Description: Cleanup some cluttered macros, add error checking for fan divisor value set. Signed-off-by: Sytse Wielinga <[EMAIL PROTECTED]> Signed-off-by: Aurelien Jarno <[EMAIL PROTECTED]> Signed-off-by: Shawn Starr <[EMAIL PROTECTED]> Description: Cleanup some cluttered macros, add error chec

Re: [PATCH 2.6.11-rc2] I2C: lm80 driver improvement -

2005-01-29 Thread Greg KH
On Thu, Jan 27, 2005 at 11:56:46AM -0500, Shawn Starr wrote: > Description: Cleanup some cluttered macros, add error > checking for fan divisor value set. Hm, we'll get there yet. Your patch was not in a plain text form, so that I could apply it directly from the email. > Approved-by: Greg KH <[

Re: [PATCH 2.6.11-rc2] I2C: lm80 driver improvement -

2005-01-27 Thread Shawn Starr
Description: Cleanup some cluttered macros, add error checking for fan divisor value set. Approved-by: Greg KH <[EMAIL PROTECTED]> Signed-off-by: Sytse Wielinga <[EMAIL PROTECTED]> Signed-off-by: Aurelien Jarno <[EMAIL PROTECTED]> Signed-off-by: Shawn Starr <[EMAIL PROTECTED]> --- Greg KH <[EMAI

Re: [PATCH 2.6.11-rc2] I2C: lm80 driver improvement (From Aurelien) - Resubmit #2

2005-01-27 Thread Greg KH
On Wed, Jan 26, 2005 at 12:31:30PM -0500, Shawn Starr wrote: > Here is the corrected fix, yeah that didn't make > sense. > 3AM isn't a good time to send patches I guess :-) Care to resend it, with a full description and a Signed-off-by: line so I can apply it? thanks, greg k-h - To unsubscrib

Re: [PATCH 2.6.11-rc2] I2C: lm80 driver improvement (From Aurelien) - Resubmit #2

2005-01-26 Thread Shawn Starr
Here is the corrected fix, yeah that didn't make sense. 3AM isn't a good time to send patches I guess :-) --- Greg KH <[EMAIL PROTECTED]> wrote: > On Wed, Jan 26, 2005 at 02:57:35AM -0500, Shawn > Starr wrote: > > static inline unsigned char FAN_TO_REG(unsigned > rpm, unsigned div) > > { >

Re: [PATCH 2.6.11-rc2] I2C: lm80 driver improvement (From Aurelien) - Resubmit

2005-01-26 Thread Aurélien Jarno
Greg KH wrote: On Wed, Jan 26, 2005 at 02:57:35AM -0500, Shawn Starr wrote: static inline unsigned char FAN_TO_REG(unsigned rpm, unsigned div) { - if (rpm == 0) + if (rpm <= 0) As was pointed out, this doesn't make any sense. Care to redo the patch? Please note that the problem is not

Re: [PATCH 2.6.11-rc2] I2C: lm80 driver improvement (From Aurelien) - Resubmit

2005-01-26 Thread Greg KH
On Wed, Jan 26, 2005 at 02:57:35AM -0500, Shawn Starr wrote: > static inline unsigned char FAN_TO_REG(unsigned rpm, unsigned div) > { > - if (rpm == 0) > + if (rpm <= 0) As was pointed out, this doesn't make any sense. Care to redo the patch? thanks, greg k-h - To unsubscribe from thi

Re: [PATCH 2.6.11-rc2] I2C: lm80 driver improvement (From Aurelien)

2005-01-26 Thread Sytse Wielinga
On Wed, Jan 26, 2005 at 03:05:09PM +0100, I wrote: > BTW, can anyone tell me why the uints in this parameter list are declared as > 'unsigned' and not as 'unsigned int'? $ find /usr/src/linux/ -name \*.c |xargs grep unsigned\ [^icsl] |wc -l 3151 - Gives himself a good smack on the head - Sorry ab

Re: [PATCH 2.6.11-rc2] I2C: lm80 driver improvement (From Aurelien)

2005-01-26 Thread Sytse Wielinga
On Wed, Jan 26, 2005 at 02:49:23AM -0500, Shawn Starr wrote: > static inline unsigned char FAN_TO_REG(unsigned rpm, unsigned div) > { > - if (rpm == 0) > + if (rpm <= 0) The rpm parameter is unsigned so this change is useless. The rest makes sense to me. BTW, can anyone tell me why the uints in

Re: [PATCH 2.6.11-rc2] I2C: lm80 driver improvement (From Aurelien) - Resubmit

2005-01-25 Thread Shawn Starr
You know, after seeing that patch, that it just makes sense to add some of those cleanups to the lm80 driver. Shawn. lm80-i2c-0-28 Adapter: SMBus PIIX4 adapter at fe00 +5V: +4.90 V (min = +4.74 V, max = +5.25 V) VTT: +1.72 V (min = +1.70 V, max = +2.10 V) +3.3V: +3.35 V (mi

[PATCH 2.6.11-rc2] I2C: lm80 driver improvement (From Aurelien)

2005-01-25 Thread Shawn Starr
You know, after seeing that patch, that it just makes sense to add some of those cleanups to the lm80 driver. Shawn. lm80-i2c-0-28 Adapter: SMBus PIIX4 adapter at fe00 +5V: +4.90 V (min = +4.74 V, max = +5.25 V) VTT: +1.72 V (min = +1.70 V, max = +2.10 V) +3.3V: +3.35 V (