[PATCH v2 1/2] staging: iio: vcnl4000: Add IR current adjust support

2016-07-25 Thread Pratik Prajapati
Signed-off-by: Pratik Prajapati <pratik.prajapat...@gmail.com> --- Changes v1 -> v2: - documented current_led files in ABI - masked value while writing to led register - added blank line before last return - removed redundant return Documentation/ABI/testing/sysfs-bus

[PATCH v2 2/2] staging: iio: vcnl4000: Replace i2c api's with regmap

2016-07-25 Thread Pratik Prajapati
Signed-off-by: Pratik Prajapati <pratik.prajapat...@gmail.com> --- Changes v1 -> v2 - added error msgs for led current's read and write functions drivers/iio/light/vcnl4000.c | 99 ++-- 1 file changed, 86 insertions(+), 13 deletions(-) d

[PATCH v2 1/2] staging: iio: vcnl4000: Add IR current adjust support

2016-07-25 Thread Pratik Prajapati
Signed-off-by: Pratik Prajapati --- Changes v1 -> v2: - documented current_led files in ABI - masked value while writing to led register - added blank line before last return - removed redundant return Documentation/ABI/testing/sysfs-bus-iio | 13 ++ drivers/iio/light/vcnl400

[PATCH v2 2/2] staging: iio: vcnl4000: Replace i2c api's with regmap

2016-07-25 Thread Pratik Prajapati
Signed-off-by: Pratik Prajapati --- Changes v1 -> v2 - added error msgs for led current's read and write functions drivers/iio/light/vcnl4000.c | 99 ++-- 1 file changed, 86 insertions(+), 13 deletions(-) diff --git a/drivers/iio/light/vcnl4000.

Re: [PATCH 2/2] staging: iio: vcnl4000: Replace i2c api's with regmap

2016-07-25 Thread Pratik Prajapati
On Sun, Jul 24, 2016 at 3:56 PM, Jonathan Cameron <ji...@kernel.org> wrote: > On 21/07/16 15:41, Pratik Prajapati wrote: >> Signed-off-by: Pratik Prajapati <pratik.prajapat...@gmail.com> >> --- >> drivers/iio/light/vcnl4000.c | 91 >>

Re: [PATCH 2/2] staging: iio: vcnl4000: Replace i2c api's with regmap

2016-07-25 Thread Pratik Prajapati
On Sun, Jul 24, 2016 at 3:56 PM, Jonathan Cameron wrote: > On 21/07/16 15:41, Pratik Prajapati wrote: >> Signed-off-by: Pratik Prajapati >> --- >> drivers/iio/light/vcnl4000.c | 91 >> +--- >> 1 file changed, 78 insertio

Re: How to support multiple chips in single driver

2016-07-23 Thread Pratik Prajapati
On Sat, Jul 23, 2016 at 8:37 PM, Jonathan Cameron <ji...@jic23.retrosnub.co.uk> wrote: > > > On 23 July 2016 14:36:39 BST, Pratik Prajapati <pratik.prajapat...@gmail.com> > wrote: >>Hi, >> >>I want to add the threshold, event handling and interru

Re: How to support multiple chips in single driver

2016-07-23 Thread Pratik Prajapati
On Sat, Jul 23, 2016 at 8:37 PM, Jonathan Cameron wrote: > > > On 23 July 2016 14:36:39 BST, Pratik Prajapati > wrote: >>Hi, >> >>I want to add the threshold, event handling and interrupts support in >>vcnl4000 driver but those functionalities are not su

How to support multiple chips in single driver

2016-07-23 Thread Pratik Prajapati
of vcnl4000 Best Regards, Pratik Prajapati

How to support multiple chips in single driver

2016-07-23 Thread Pratik Prajapati
of vcnl4000 Best Regards, Pratik Prajapati

Re: [PATCH 1/1] iio: vcnl4000: Add IR current adjust support

2016-07-21 Thread Pratik Prajapati
On Tue, Jul 19, 2016 at 11:51 AM, Peter Meerwald-Stadler wrote: > > > > > comments below; nice addition > > > > > > it seems this patch clashes with the recent changes to this driver in > > > iio-testing; can you rebase on top please? > > > > Where is iio-testing? I couldn't

Re: [PATCH 1/1] iio: vcnl4000: Add IR current adjust support

2016-07-21 Thread Pratik Prajapati
On Tue, Jul 19, 2016 at 11:51 AM, Peter Meerwald-Stadler wrote: > > > > > comments below; nice addition > > > > > > it seems this patch clashes with the recent changes to this driver in > > > iio-testing; can you rebase on top please? > > > > Where is iio-testing? I couldn't found it in linux. >

[PATCH 2/2] staging: iio: vcnl4000: Replace i2c api's with regmap

2016-07-21 Thread Pratik Prajapati
Signed-off-by: Pratik Prajapati <pratik.prajapat...@gmail.com> --- drivers/iio/light/vcnl4000.c | 91 +--- 1 file changed, 78 insertions(+), 13 deletions(-) diff --git a/drivers/iio/light/vcnl4000.c b/drivers/iio/light/vcnl4000.c index 1378175..6

[PATCH 2/2] staging: iio: vcnl4000: Replace i2c api's with regmap

2016-07-21 Thread Pratik Prajapati
Signed-off-by: Pratik Prajapati --- drivers/iio/light/vcnl4000.c | 91 +--- 1 file changed, 78 insertions(+), 13 deletions(-) diff --git a/drivers/iio/light/vcnl4000.c b/drivers/iio/light/vcnl4000.c index 1378175..61e48f8 100644 --- a/drivers/iio/light

[PATCH 1/2] staging: iio: vcnl4000: Add IR current adjust support

2016-07-21 Thread Pratik Prajapati
Signed-off-by: Pratik Prajapati <pratik.prajapat...@gmail.com> --- drivers/iio/light/vcnl4000.c | 78 1 file changed, 72 insertions(+), 6 deletions(-) diff --git a/drivers/iio/light/vcnl4000.c b/drivers/iio/light/vcnl4000.c index 360b6e9..1

[PATCH 1/2] staging: iio: vcnl4000: Add IR current adjust support

2016-07-21 Thread Pratik Prajapati
Signed-off-by: Pratik Prajapati --- drivers/iio/light/vcnl4000.c | 78 1 file changed, 72 insertions(+), 6 deletions(-) diff --git a/drivers/iio/light/vcnl4000.c b/drivers/iio/light/vcnl4000.c index 360b6e9..1378175 100644 --- a/drivers/iio/light

Re: [PATCH 1/1] iio: vcnl4000: Add IR current adjust support

2016-07-19 Thread Pratik Prajapati
On Tue, Jul 19, 2016 at 3:50 AM, Peter Meerwald-Stadler <pme...@pmeerw.net> wrote: > >> Signed-off-by: Pratik Prajapati <pratik.prajapat...@gmail.com> > > comments below; nice addition > > it seems this patch clashes with the recent changes to this driver in >

Re: [PATCH 1/1] iio: vcnl4000: Add IR current adjust support

2016-07-19 Thread Pratik Prajapati
On Tue, Jul 19, 2016 at 3:50 AM, Peter Meerwald-Stadler wrote: > >> Signed-off-by: Pratik Prajapati > > comments below; nice addition > > it seems this patch clashes with the recent changes to this driver in > iio-testing; can you rebase on top please? Where is iio-t

[PATCH 1/1] iio: vcnl4000: Add IR current adjust support

2016-07-18 Thread Pratik Prajapati
Signed-off-by: Pratik Prajapati <pratik.prajapat...@gmail.com> --- drivers/iio/light/vcnl4000.c | 119 +-- 1 file changed, 116 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/vcnl4000.c b/drivers/iio/light/vcnl4000.c index c9d85bb..6

[PATCH 1/1] iio: vcnl4000: Add IR current adjust support

2016-07-18 Thread Pratik Prajapati
Signed-off-by: Pratik Prajapati --- drivers/iio/light/vcnl4000.c | 119 +-- 1 file changed, 116 insertions(+), 3 deletions(-) diff --git a/drivers/iio/light/vcnl4000.c b/drivers/iio/light/vcnl4000.c index c9d85bb..6b8b223 100644 --- a/drivers/iio/light

Re: How to set Current register in IIO driver from sysfs

2016-07-11 Thread Pratik Prajapati
10/07/16 14:11, Pratik Prajapati wrote: >> Including more members. >> >> On Sat, Jul 9, 2016 at 5:22 PM, Pratik Prajapati >> <pratik.prajapat...@gmail.com> wrote: >>> Hi, > hi Pratik, >>> >>> I am trying to add support of adjusting IR led

Re: How to set Current register in IIO driver from sysfs

2016-07-11 Thread Pratik Prajapati
tik Prajapati wrote: >> Including more members. >> >> On Sat, Jul 9, 2016 at 5:22 PM, Pratik Prajapati >> wrote: >>> Hi, > hi Pratik, >>> >>> I am trying to add support of adjusting IR led current in vcnl4000 >>> driver (has IR led curren

Re: How to set Current register in IIO driver from sysfs

2016-07-10 Thread Pratik Prajapati
Including more members. On Sat, Jul 9, 2016 at 5:22 PM, Pratik Prajapati <pratik.prajapat...@gmail.com> wrote: > Hi, > > I am trying to add support of adjusting IR led current in vcnl4000 > driver (has IR led current register for doing the same). > > Below is what I h

Re: How to set Current register in IIO driver from sysfs

2016-07-10 Thread Pratik Prajapati
Including more members. On Sat, Jul 9, 2016 at 5:22 PM, Pratik Prajapati wrote: > Hi, > > I am trying to add support of adjusting IR led current in vcnl4000 > driver (has IR led current register for doing the same). > > Below is what I have done till now: > >