RE: Newbie Question About Dev-Interface Method

2010-10-08 Thread Rory Filer
> > I'm assuming that a kernel space chip driver like our gpio expander > (pca953x.c) also uses the same adapter driver as my user-space > application since that expander chip is on the same bus. > > Let's clarify right away: i2c-dev (which handles /dev/i2c-* nodes) is > NOT an adapter driver. It

Re: [PATCHv2 3/5] misc: Driver for APDS990X ALS and proximity sensors

2010-10-08 Thread Jonathan Cameron
On 10/08/10 14:42, Samu Onkalo wrote: > This is a driver for Avago APDS990X combined ALS and proximity sensor. > > Interface is sysfs based. The driver uses interrupts to provide new data. > The driver supports pm_runtime and regulator frameworks. > > See Documentation/misc-devices/apds990x.txt f

Re: [PATCHv2 1/5] misc: Driver for bh1770glc / sfh7770 ALS and proximity sensor

2010-10-08 Thread Jonathan Cameron
On 10/08/10 14:42, Samu Onkalo wrote: > This is a driver for ROHM BH1770GLC and OSRAM SFH7770 combined > ALS and proximity sensor. > > Interface is sysfs based. The driver uses interrupts to provide new data. > The driver supports pm_runtime and regulator frameworks. > > See Documentation/misc-de

Re: [PATCHv2 2/5] misc: update bhsfh driver to Kconfig and Makefile

2010-10-08 Thread Jonathan Cameron
On 10/08/10 14:42, Samu Onkalo wrote: > Compilation support for bhsfh driver > > Signed-off-by: Samu Onkalo > --- > drivers/misc/Kconfig | 10 ++ > drivers/misc/Makefile |1 + > 2 files changed, 11 insertions(+), 0 deletions(-) > > diff --git a/drivers/misc/Kconfig b/drivers/misc

Re: [PATCHv2 5/5] Documentation: Short descriptions for bhsfh and apds990x drivers

2010-10-08 Thread Jonathan Cameron
On 10/08/10 14:42, Samu Onkalo wrote: > Add short documentation for two ALS / proximity chip drivers. > > bhsfh document update Hi Samu, Couple of clarity related questions below and some typos. Otherwise pretty much fine. I wonder if it would be useful to put some of the platform data docs in

[PATCHv2 3/5] misc: Driver for APDS990X ALS and proximity sensors

2010-10-08 Thread Samu Onkalo
This is a driver for Avago APDS990X combined ALS and proximity sensor. Interface is sysfs based. The driver uses interrupts to provide new data. The driver supports pm_runtime and regulator frameworks. See Documentation/misc-devices/apds990x.txt for details Signed-off-by: Samu Onkalo --- drive

[PATCHv2 5/5] Documentation: Short descriptions for bhsfh and apds990x drivers

2010-10-08 Thread Samu Onkalo
Add short documentation for two ALS / proximity chip drivers. bhsfh document update Signed-off-by: Samu Onkalo --- Documentation/misc-devices/apds990x.txt | 152 +++ Documentation/misc-devices/bhsfh.txt| 148 ++ 2 files changed, 300

[PATCHv2 1/5] misc: Driver for bh1770glc / sfh7770 ALS and proximity sensor

2010-10-08 Thread Samu Onkalo
This is a driver for ROHM BH1770GLC and OSRAM SFH7770 combined ALS and proximity sensor. Interface is sysfs based. The driver uses interrupts to provide new data. The driver supports pm_runtime and regulator frameworks. See Documentation/misc-devices/bhsfh.txt for details Signed-off-by: Samu Onk

[PATCHv2 2/5] misc: update bhsfh driver to Kconfig and Makefile

2010-10-08 Thread Samu Onkalo
Compilation support for bhsfh driver Signed-off-by: Samu Onkalo --- drivers/misc/Kconfig | 10 ++ drivers/misc/Makefile |1 + 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index b743312..f2e8065 100644 --- a/drivers/mis

[PATCHv2 4/5] misc: update apds990x driver to Kconfig and Makefile

2010-10-08 Thread Samu Onkalo
Compilation support for apds990x driver Signed-off-by: Samu Onkalo --- drivers/misc/Kconfig | 11 +++ drivers/misc/Makefile |1 + 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index f2e8065..cc7c363 100644 --- a/drivers

[PATCHv2 0/5] BH1770GLC, SFH7770 and APDS990x als / proximity sensor drivers

2010-10-08 Thread Samu Onkalo
Patch set contains two drivers. One for BH1770GLC / SFH7770 chips and one for APDS990X chip. Both drivers have similar sysfs based interface. Both supports pm_runtime and regulator frame work. There is short documentation for both drivers. Unfortunately I can't promise data sheets to public acces