mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Onkalo Samu <samu.p.onkalo@nokia.com>
To: ext Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: "linux-i2c@vger.kernel.org" <linux-i2c@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/5] misc: Driver for APDS990X ALS and proximity sensors
Date: Tue, 05 Oct 2010 15:39:44 +0300	[thread overview]
Message-ID: <1286282384.21781.62.camel@4fid08082> (raw)
In-Reply-To: <20101005140049.1f25bb24@lxorguk.ukuu.org.uk>

On Tue, 2010-10-05 at 15:00 +0200, ext Alan Cox wrote:
> > > - not clear how power_state and runtime pm interact - do we in fact need
> > >   power state ?
> > 
> > power_state turns chip on or off. In off state runtime pm is used to
> > handle bookkeeping and also handling chip state transitions including
> > regulators. Other ideas than separate power_state for this kind of
> > control? 
> 
> Ok that makes sense.
> 
> > 
> > 
> > > - lux0_input range being fixed seems inconvenient, the sensors I've got
> > >   queued here use lux0_input as you do but also provide a read (and
> > >   optionally writable) range limit in lux
> > > 
> > > static DEVICE_ATTR(lux0_sensor_range, S_IRUGO | S_IWUSR,
> > > 	als_sensing_range_show, als_sensing_range_store);
> > > 
> > > and in your case you could just return 65535
> > > 
> > 
> > I'll add that
> 
> Cool. I'll bash our sensor queue to fit this API

There are quite many naming convetion changes proposed
by Jonathan Cameron. I think that those are valid.

-Samu




  reply	other threads:[~2010-10-05 12:41 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-05  9:42 [PATCH 0/5] BH1770GLC, SFH7770 and APDS990x als / proximity sensor drivers Samu Onkalo
2010-10-05  9:42 ` [PATCH 1/5] misc: Driver for bh1770glc / sfh7770 ALS and proximity sensor Samu Onkalo
2010-10-05 11:21   ` Alan Cox
2010-10-05 11:29     ` Onkalo Samu
2010-10-05 12:01       ` Alan Cox
2010-10-05 12:37         ` Onkalo Samu
2010-10-05  9:42 ` [PATCH 2/5] misc: update bhsfh driver to Kconfig and Makefile Samu Onkalo
2010-10-05  9:42 ` [PATCH 3/5] misc: Driver for APDS990X ALS and proximity sensors Samu Onkalo
2010-10-05 11:23   ` Alan Cox
2010-10-05 11:48     ` Onkalo Samu
2010-10-05 13:00       ` Alan Cox
2010-10-05 12:39         ` Onkalo Samu [this message]
2010-10-05 21:42     ` Mark Brown
2010-10-05  9:42 ` [PATCH 4/5] misc: update apds990x driver to Kconfig and Makefile Samu Onkalo
2010-10-05  9:42 ` [PATCH 5/5] Documentation: Short descriptions for bhsfh and apds990x drivers Samu Onkalo
2010-10-05 11:53   ` Jonathan Cameron
2010-10-05 12:22     ` Onkalo Samu
2010-10-05 14:13       ` Jonathan Cameron

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=1286282384.21781.62.camel@4fid08082 \
    --to=samu.p.onkalo@nokia.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome