From: Jean Delvare <khali@linux-fr.org>
To: "Mark M. Hoffman" <mhoffman@lightlink.com>
Cc: Joerg Sommrey <jo@sommrey.de>,
LKML <linux-kernel@vger.kernel.org>,
lm-sensors <lm-sensors@lm-sensors.org>
Subject: Re: [PATCH] bad temperature values from w83781d in 2.6.22
Date: Sun, 12 Aug 2007 20:18:12 +0200 [thread overview]
Message-ID: <20070812201812.34694d75@hyperion.delvare> (raw)
In-Reply-To: <20070809122619.GF3584@jupiter.solarsys.private>
On Thu, 9 Aug 2007 08:26:19 -0400, Mark M. Hoffman wrote:
> Author: Mark M. Hoffman <mhoffman@lightlink.com>
> Date: Thu Aug 9 08:12:46 2007 -0400
>
> hwmon: fix w83781d temp sensor type setting
>
> Commit 348753379a7704087603dad403603e825422fd9a introduced a regression that
> caused temp2 and temp3 sensor type settings to be written to temp1 instead.
> The result is that temp sensor readings could be way off.
>
> Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Good catch, sorry for messing up. My test chip is a W83781D, it doesn't
have thermal sensor type selection, so I couldn't test that.
Acked-by: Jean Delvare <khali@linux-fr.org>
> diff --git a/drivers/hwmon/w83781d.c b/drivers/hwmon/w83781d.c
> index f85b48f..c95909c 100644
> --- a/drivers/hwmon/w83781d.c
> +++ b/drivers/hwmon/w83781d.c
> @@ -740,9 +740,9 @@ store_sensor(struct device *dev, struct device_attribute *da,
> static SENSOR_DEVICE_ATTR(temp1_type, S_IRUGO | S_IWUSR,
> show_sensor, store_sensor, 0);
> static SENSOR_DEVICE_ATTR(temp2_type, S_IRUGO | S_IWUSR,
> - show_sensor, store_sensor, 0);
> + show_sensor, store_sensor, 1);
> static SENSOR_DEVICE_ATTR(temp3_type, S_IRUGO | S_IWUSR,
> - show_sensor, store_sensor, 0);
> + show_sensor, store_sensor, 2);
>
> /* I2C devices get this name attribute automatically, but for ISA devices
> we must create it by ourselves. */
--
Jean Delvare
prev parent reply other threads:[~2007-08-12 18:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070805183219.0d54802b.akpm@linux-foundation.org>
2007-08-05 10:26 ` bad temperature values from w83781d in 2.6.22 Joerg Sommrey
2007-08-05 11:20 ` Rene Herman
2007-08-05 16:27 ` Joerg Sommrey
2007-08-08 1:03 ` Mark M. Hoffman
2007-08-08 15:17 ` Joerg Sommrey
2007-08-09 3:56 ` [lm-sensors] " Mark M. Hoffman
2007-08-09 7:09 ` Joerg Sommrey
2007-08-09 12:26 ` [PATCH] " Mark M. Hoffman
2007-08-09 16:41 ` Joerg Sommrey
2007-08-12 18:18 ` Jean Delvare [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=20070812201812.34694d75@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=jo@sommrey.de \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=mhoffman@lightlink.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox