All of lore.kernel.org
 help / color / mirror / Atom feed
From: jmunsin@iki.fi (Jonas Munsin)
To: lm-sensors@vger.kernel.org
Subject: it87 pwm patch for 2.6.6
Date: Thu, 19 May 2005 06:25:01 +0000	[thread overview]
Message-ID: <20040608160403.GA3758@nemo.sby.abo.fi> (raw)
In-Reply-To: <20040516205100.GA9996@nemo.sby.abo.fi>

On Sat, Jun 05, 2004 at 10:27:16AM +0200, Jean Delvare wrote:
> Nice catching for TEMP_TO_REG, I completely missed that one. BTW, now
> that I took a longer look at it, I really wonder how a negative
> temperature limit could ever been set with this. Looks like it'll end up
> with 0. OTOH, asking for a temperature higher than 127.5 degrees will
> most likely lead to "random" negative values. This is probably true for
> both the 2.4 and the 2.6 driver as of now. Could you please test and
> confirm? Most likely nobody cares about setting negative limits, but
> while we're at cleaning up this part of the driver...

Yep, testing (on 2.6) confirms this, fixed it.

Btw, "grep SENSORS_LIMIT drivers/i2c/chips/*.c|grep 127" shows that
lm85.c has a rounding error in it's TEMP_TO_REG() macro (and probably in
at least one other place).

> Yes, looks very good to me (except for my comment above about setting
> negative temperature limits).

Ok, I'll send it to Greg KH then.

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

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:24 it87 pwm patch for 2.6.6 Jonas Munsin
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:25 ` Jonas Munsin
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Jonas Munsin [this message]
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Jonas Munsin

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=20040608160403.GA3758@nemo.sby.abo.fi \
    --to=jmunsin@iki.fi \
    --cc=lm-sensors@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 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.