From: Andrew Morton <akpm@linux-foundation.org>
To: Daniel Mack <daniel@caiaq.de>
Cc: Hemanth V <hemanthv@ti.com>,
linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org,
Jonathan Cameron <jic23@cam.ac.uk>,
Wolfram Sang <w.sang@pengutronix.de>
Subject: Re: [PATCH V2] misc : ROHM BH1780GLI Ambient light sensor Driver
Date: Tue, 1 Jun 2010 13:38:51 -0700 [thread overview]
Message-ID: <20100601133851.76adbe17.akpm@linux-foundation.org> (raw)
In-Reply-To: <20100601202715.GV2695@buzzloop.caiaq.de>
On Tue, 1 Jun 2010 22:27:15 +0200
Daniel Mack <daniel@caiaq.de> wrote:
> On Tue, Jun 01, 2010 at 01:12:44PM -0700, Andrew Morton wrote:
> > On Mon, 24 May 2010 16:34:25 +0530 (IST)
> > "Hemanth V" <hemanthv@ti.com> wrote:
> >
> > > This patch adds support for ROHM BH1780GLI Ambient light sensor.
> > >
> > > BH1780 supports I2C interface. Driver supports read/update of power state and
> > > read of lux value (through SYSFS). Writing value 3 to power_state enables the
> > > sensor and current lux value could be read.
> >
> > There are at least two other ambient light sensor drivers:
> > drivers/misc/isl29003.c and drivers/misc/tsl2550.c.
> >
> > Is there any standardisation of the ABIs whcih these drivers offer? If
> > so, does this new driver comply with that?
>
> Jonathan proposed the ALS framework for these type of devices, but it
> was rejected (don't know about the reasons, I didn't follow the
> discussions). The new idea is to put such drivers in the industrial IO
> subsystem, but I don't know how mature that approach is currently.
>
> For the time being, these drivers cook up whatever sysfs interface they
> like, and their userspace ABIs are not standardized, unfortunately.
Well can we fix that? Look at the existing drivers, pick one and make
this new driver provide the same interface?
It's not a grand plan - more of an incremental baby step, but it's
better than this random proliferation.
next prev parent reply other threads:[~2010-06-01 20:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-24 11:04 [PATCH V2] misc : ROHM BH1780GLI Ambient light sensor Driver Hemanth V
2010-06-01 20:12 ` Andrew Morton
2010-06-01 20:27 ` Daniel Mack
2010-06-01 20:38 ` Andrew Morton [this message]
2010-06-01 20:45 ` Jonathan Cameron
2010-06-01 20:39 ` Jonathan Cameron
2010-06-01 20:54 ` Andrew Morton
2010-06-01 21:39 ` Jonathan Cameron
2010-06-02 8:59 ` Hemanth V
2010-06-02 13:05 ` Alan Cox
[not found] <39216.10.24.255.17.1274699066.squirrel@dbdmail.itg.ti.com>
2010-05-26 8:30 ` Hemanth V
2010-05-26 9:39 ` Jonathan Cameron
2010-05-26 11:12 ` Hemanth V
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=20100601133851.76adbe17.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=daniel@caiaq.de \
--cc=hemanthv@ti.com \
--cc=jic23@cam.ac.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=w.sang@pengutronix.de \
/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