From: Guenter Roeck <guenter.roeck@ericsson.com>
To: Alexander Stein <alexander.stein@systec-electronic.com>
Cc: Jean Delvare <khali@linux-fr.org>,
"lm-sensors@lm-sensors.org" <lm-sensors@lm-sensors.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] hwmon: LM95245 driver
Date: Wed, 22 Jun 2011 12:15:49 -0700 [thread overview]
Message-ID: <1308770149.8271.600.camel@groeck-laptop> (raw)
In-Reply-To: <1308649953-2774-1-git-send-email-alexander.stein@systec-electronic.com>
On Tue, 2011-06-21 at 05:52 -0400, Alexander Stein wrote:
> An hwmon driver for the National Semiconductor LM95245 dual temperature
> sensors chip.
>
> Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Overall pretty well written, only I am a bit at loss why you try to deal
with the unsigned temperature registers. That adds a bit of complexity
to the driver. Given that the signed temperature value range is up to
127 degrees C, and that the chip is only rated up to 125 degrees C, the
added complexity doesn't seem to be worth it.
Can you elaborate ?
Other comments:
For the interval attribute, idea would be to write the value into the
conversion rate register. Your code does not match the interval with the
rate programmed into the chip (which is the idea), nor does it update
the rate if the interval is changed.
Chip address 0x29 is missing.
It would be nice if the driver would support limit, hysteresis, alarm,
and fault attributes.
Thanks,
Guenter
next prev parent reply other threads:[~2011-06-22 19:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-21 9:52 Alexander Stein
2011-06-22 19:15 ` Guenter Roeck [this message]
2011-06-23 9:14 ` Alexander Stein
2011-06-23 9:33 ` Jean Delvare
2011-06-23 10:50 ` Alexander Stein
2011-06-23 14:26 ` Guenter Roeck
2011-06-23 14:47 ` Guenter Roeck
2011-06-23 15:14 ` Alexander Stein
2011-06-23 15:35 ` Guenter Roeck
2011-06-27 15:49 ` [PATCH v2] " Alexander Stein
2011-06-27 20:21 ` Guenter Roeck
2011-06-28 7:07 ` [PATCH v3] " Alexander Stein
2011-06-28 14:43 ` Guenter Roeck
2011-06-28 15:11 ` [PATCH v4] " Alexander Stein
2011-06-30 9:06 ` Guenter Roeck
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=1308770149.8271.600.camel@groeck-laptop \
--to=guenter.roeck@ericsson.com \
--cc=alexander.stein@systec-electronic.com \
--cc=khali@linux-fr.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®