All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Hutchings <bhutchings@solarflare.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH 2/3] lm87: Restore original configuration
Date: Fri, 22 Aug 2008 15:57:57 +0000	[thread overview]
Message-ID: <20080822155756.GS7908@solarflare.com> (raw)
In-Reply-To: <20080820201533.GN7908@solarflare.com>

Jean Delvare wrote:
[...]
> > @@ -840,12 +842,11 @@ exit:
> >  static void lm87_init_client(struct i2c_client *client)
> >  {
> >  	struct lm87_data *data = i2c_get_clientdata(client);
> > -	u8 config;
> >  
> >  	data->channel = lm87_read_value(client, LM87_REG_CHANNEL_MODE);
> > +	data->config = lm87_read_value(client, LM87_REG_CONFIG);
> 
> Would you mind if I add "& 0x6f"? Bits 4 and 7 trigger an action when
> you write to them, and self clear. Thus I think we want to make sure
> that we will never write 1 to them accidentally. It shouldn't make a
> difference in practice, but it feels safer to me that way.
[...]

Sure, that seems reasonable.

Ben.

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

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

      parent reply	other threads:[~2008-08-22 15:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-20 20:15 [lm-sensors] [PATCH 2/3] lm87: Restore original configuration Ben Hutchings
2008-08-22 15:01 ` Jean Delvare
2008-08-22 15:57 ` Ben Hutchings [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=20080822155756.GS7908@solarflare.com \
    --to=bhutchings@solarflare.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.