All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Per Dalén" <per.dalen@appeartv.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH v4] hwmon: Add support for MAX6642
Date: Wed, 06 Apr 2011 19:06:13 +0000	[thread overview]
Message-ID: <4D9CB9A5.5010107@appeartv.com> (raw)
In-Reply-To: <4D9CB118.80103@appeartv.com>

On 04/06/2011 08:58 PM, Guenter Roeck wrote:
> Hi Per,
> 
> On Wed, Apr 06, 2011 at 02:29:44PM -0400, Per Dalén wrote:
>> First a big thanks to Guenter Roeck for helping me (allot) to cleanup
>> this driver
>>
>> v3 -> v4:
>>  * Removed "data->valid = 0;" (missed that in v3 ;)
>>  * only read the limits once
>>  * changed the temp_input and temp_high as suggested by Guenter, also
>> changed the functions/macros related to that change
> 
>> MAX6642 is a SMBus-Compatible Remote/Local Temperature Sensor with Overtemperature Alarm from Maxim.
>>  
>> Signed-off-by: Per Dalen <per.dalen@appeartv.com>
>>
> Sorry, one more detail I just noticed. More of a question.
> 
> [ ... ]
>> +
>> +static struct max6642_data *max6642_update_device(struct device *dev)
>> +{
>> +	struct i2c_client *client = to_i2c_client(dev);
>> +	struct max6642_data *data = i2c_get_clientdata(client);
>> +	u16 val, tmp;
>> +
>> +	mutex_lock(&data->update_lock);
>> +
>> +	if (time_after(jiffies, data->last_updated + HZ * 8) || !data->valid) {
> 
> Are you sure you only want to update readings every 8 seconds ?

No, this is wrong from me. Every second, or what do you think?

> 
> Also, after spending all this time on this driver (and after falling into
> the same trap last night with another driver ;), it looks like this is really
> just another variant of the lm90, and adding support for max6642 to the lm90
> driver might be quite trivial. Have you considered this ?

Hmmm, ;)

"Re: [lm-sensors] [PATCH] hwmon: (lm90) Add support for max6642

On 03/03/2011 08:55 PM, Guenter Roeck wrote:
With all the differences and lacking registers, I wonder if it would be
better to write a new driver, either based on this driver of based on
the max1619 driver.

Guenter"

> 
> Thanks,
> Guenter
> 

br
Per

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  parent reply	other threads:[~2011-04-06 19:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-06 18:29 [lm-sensors] [PATCH v4] hwmon: Add support for MAX6642 Per Dalén
2011-04-06 18:58 ` Guenter Roeck
2011-04-06 19:06 ` Per Dalén [this message]
2011-04-06 19:32 ` Guenter Roeck
2011-04-06 20:22 ` Per Dalén
2011-04-06 21:54 ` 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=4D9CB9A5.5010107@appeartv.com \
    --to=per.dalen@appeartv.com \
    --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.