All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH 1/3] hwmon: (lm90) Simplify handling of
Date: Thu, 28 Jul 2011 06:01:58 +0000	[thread overview]
Message-ID: <20110728060158.GD21792@ericsson.com> (raw)
In-Reply-To: <20110724203520.07a3f202@endymion.delvare>

On Sun, Jul 24, 2011 at 02:35:20PM -0400, Jean Delvare wrote:
> The optional extended local temperature register can never have
> address 0, as this address is already used by another register. Thus
> we can get rid of flag LM90_HAVE_LOCAL_EXT and simply rely on
> reg_local_ext being non-zero to determine if a given chip has this
> extension or not. This makes the code more simple.
> 
> Signed-off-by: Jean Delvare <khali@linux-fr.org>
> Cc: Stijn Devriendt <sdevrien@cisco.com>
> Cc: Guenter Roeck <guenter.roeck@ericsson.com>
> ---
> Notes:
> * This patch fixes a bug as a side effect: chip type max6657 lacked
>   the definition of reg_local_ext. I can submit a separate patch for
>   this, or it can be fixed in the patch which broke it (as it isn't in
>   Linus' tree yet) and I'll adjust this one accordingly, or this patch
>   can be merged in the patch which broke it altogether. All options
>   are fine with me. Guenter?
> * Another approach would be to keep MAX6657_REG_R_LOCAL_TEMPL, but set
>   it automatically in lm90_probe(). Opinions?
> 
I prefer your fix; it makes the code simpler.

Regarding the max6657 problem - I'll fix that in the original patch and apply this one
on top of my queue.
 
Thanks,
Guenter

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

  parent reply	other threads:[~2011-07-28  6:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-24 18:35 [lm-sensors] [PATCH 1/3] hwmon: (lm90) Simplify handling of Jean Delvare
2011-07-26 15:32 ` Stijn Devriendt (sdevrien)
2011-07-28  6:01 ` Guenter Roeck [this message]
2011-07-28  6:27 ` Guenter Roeck
2011-08-16 14:28 ` Jean Delvare

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=20110728060158.GD21792@ericsson.com \
    --to=guenter.roeck@ericsson.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.