[PATCH v2] DocBook: Add initial documentation for IIO

2015-07-21 Thread Daniel Baluta
This is intended to help developers faster find their way inside the Industrial I/O core and reduce time spent on IIO drivers development. Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- Documentation/DocBook/Makefile | 2 +- Documentation/DocBook/iio.tmpl | 680

Re: [PATCH 1/2] iio: magnetometer: mmc35240: Add DT binding

2015-07-17 Thread Daniel Baluta
On Fri, Jul 17, 2015 at 11:34 AM, Jandy Gou wrote: > Signed-off-by: Jandy Gou Acked-by: Daniel Baluta -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.

Re: [PATCH] DocBook: Add initial documentation for IIO

2015-07-17 Thread Daniel Baluta
On Thu, Jul 16, 2015 at 10:31 PM, Jonathan Cameron wrote: Thanks for your review Jonathan! I will try to address your comments in v2. >>+ The main purpose of the Industrial I/O subsystem (IIO) is to >>provide >>+ support for devices that in some sense are analog to digital >>converts

Re: [PATCH] DocBook: Add initial documentation for IIO

2015-07-17 Thread Daniel Baluta
On Thu, Jul 16, 2015 at 1:24 PM, Jonathan Corbet wrote: > On Wed, 8 Jul 2015 15:04:48 +0300 > Daniel Baluta wrote: > >> This is intended to help developers faster find their way >> inside the Industrial I/O core and reduce time spent on IIO >> drivers development

Re: [PATCH 0/2] Add DT binding support for mmc35240

2015-07-17 Thread Daniel Baluta
On Fri, Jul 17, 2015 at 10:35 AM, Jandy Gou wrote: > Add basic DT binding for mmc35240 > Add DT binding doc for mmc35240 > > Jandy Gou (2): > iio: magnetometer: mmc35240: Add DT binding > iio: magnetometer: mmc35240: Add DT binding doc > >

Re: [PATCH] DocBook: Add initial documentation for IIO

2015-07-17 Thread Daniel Baluta
On Thu, Jul 16, 2015 at 1:24 PM, Jonathan Corbet cor...@lwn.net wrote: On Wed, 8 Jul 2015 15:04:48 +0300 Daniel Baluta daniel.bal...@intel.com wrote: This is intended to help developers faster find their way inside the Industrial I/O core and reduce time spent on IIO drivers development

Re: [PATCH 0/2] Add DT binding support for mmc35240

2015-07-17 Thread Daniel Baluta
On Fri, Jul 17, 2015 at 10:35 AM, Jandy Gou qingsong@ck-telecom.com wrote: Add basic DT binding for mmc35240 Add DT binding doc for mmc35240 Jandy Gou (2): iio: magnetometer: mmc35240: Add DT binding iio: magnetometer: mmc35240: Add DT binding doc

Re: [PATCH 1/2] iio: magnetometer: mmc35240: Add DT binding

2015-07-17 Thread Daniel Baluta
On Fri, Jul 17, 2015 at 11:34 AM, Jandy Gou qingsong@ck-telecom.com wrote: Signed-off-by: Jandy Gou qingsong@ck-telecom.com Acked-by: Daniel Baluta daniel.bal...@intel.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

Re: [PATCH] DocBook: Add initial documentation for IIO

2015-07-17 Thread Daniel Baluta
On Thu, Jul 16, 2015 at 10:31 PM, Jonathan Cameron ji...@kernel.org wrote: Thanks for your review Jonathan! I will try to address your comments in v2. + The main purpose of the Industrial I/O subsystem (IIO) is to provide + support for devices that in some sense are analog to digital

Re: [PATCH 3/3] iio: magnetometer: mmc35240: fix SET/RESET sequence

2015-07-16 Thread Daniel Baluta
On Tue, Jul 14, 2015 at 11:04 PM, Jonathan Cameron wrote: > > > On 14 July 2015 15:56:54 BST, Daniel Baluta wrote: >>From: Viorel Suman >> >>The RESET operation invoked in the last instance will align >>in the natural way all 3 axis and the chip top view. > W

Re: [PATCH 3/3] iio: magnetometer: mmc35240: fix SET/RESET sequence

2015-07-16 Thread Daniel Baluta
On Tue, Jul 14, 2015 at 11:04 PM, Jonathan Cameron ji...@kernel.org wrote: On 14 July 2015 15:56:54 BST, Daniel Baluta daniel.bal...@intel.com wrote: From: Viorel Suman viorel.su...@intel.com The RESET operation invoked in the last instance will align in the natural way all 3 axis and the chip

[PATCH 1/3] iio: magnetometer: mmc35240: Fix crash in pm suspend

2015-07-14 Thread Daniel Baluta
Trace: [ 322.573217] [<80c0d2d1>] pm_generic_suspend+0x21/0x30 [ 322.578284] [<80d042ab>] i2c_device_pm_suspend+0x1b/0x30 Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/magnetometer/mmc35240.c b/driver

[PATCH 2/3] iio: magnetometer: mmc35240: Fix SET/RESET mask

2015-07-14 Thread Daniel Baluta
This fixes setting the SET/RESET bit in the REG_CTRL0 register. Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c index e89b059

[PATCH 3/3] iio: magnetometer: mmc35240: fix SET/RESET sequence

2015-07-14 Thread Daniel Baluta
From: Viorel Suman The RESET operation invoked in the last instance will align in the natural way all 3 axis and the chip top view. Signed-off-by: Viorel Suman Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions

[PATCH 0/3] MMC35240 magneto fixes

2015-07-14 Thread Daniel Baluta
Found while testing with a compass Android app. Jonathan, this is a follow up of the first patch in this series, initially sent for review before merged window was closed: See: https://lkml.org/lkml/2015/6/21/68 Daniel Baluta (2): iio: magnetometer: mmc35240: Fix crash in pm suspend iio

[PATCH 3/3] iio: magnetometer: mmc35240: fix SET/RESET sequence

2015-07-14 Thread Daniel Baluta
From: Viorel Suman viorel.su...@intel.com The RESET operation invoked in the last instance will align in the natural way all 3 axis and the chip top view. Signed-off-by: Viorel Suman viorel.su...@intel.com Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio/magnetometer

[PATCH 2/3] iio: magnetometer: mmc35240: Fix SET/RESET mask

2015-07-14 Thread Daniel Baluta
This fixes setting the SET/RESET bit in the REG_CTRL0 register. Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio/magnetometer/mmc35240.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer

[PATCH 1/3] iio: magnetometer: mmc35240: Fix crash in pm suspend

2015-07-14 Thread Daniel Baluta
: [ 322.573217] [80c0d2d1] pm_generic_suspend+0x21/0x30 [ 322.578284] [80d042ab] i2c_device_pm_suspend+0x1b/0x30 Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio/magnetometer/mmc35240.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers

[PATCH 0/3] MMC35240 magneto fixes

2015-07-14 Thread Daniel Baluta
Found while testing with a compass Android app. Jonathan, this is a follow up of the first patch in this series, initially sent for review before merged window was closed: See: https://lkml.org/lkml/2015/6/21/68 Daniel Baluta (2): iio: magnetometer: mmc35240: Fix crash in pm suspend iio

Re: [PATCH] DocBook documentation for IIO

2015-07-10 Thread Daniel Baluta
Hi Randy, On Fri, Jul 10, 2015 at 10:13 PM, Randy Dunlap wrote: > On 07/08/15 05:04, Daniel Baluta wrote: >> In our effort to support vendors writing drivers for their own >> sensors we introduce IIO documentation in DocBook format. >> >> It documents Industrial I/O

Re: [PATCH] DocBook documentation for IIO

2015-07-10 Thread Daniel Baluta
Hi Randy, On Fri, Jul 10, 2015 at 10:13 PM, Randy Dunlap rdun...@infradead.org wrote: On 07/08/15 05:04, Daniel Baluta wrote: In our effort to support vendors writing drivers for their own sensors we introduce IIO documentation in DocBook format. It documents Industrial I/O core including

Re: [PATCH] iio: accel: kxcjk-1013: Remove blank lines

2015-07-08 Thread Daniel Baluta
d to me. Reviewed-by: Daniel Baluta Thanks Ana! Daniel. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH] DocBook: Add initial documentation for IIO

2015-07-08 Thread Daniel Baluta
This is intended to help developers faster find their way inside the Industrial I/O core and reduce time spent on IIO drivers development. Signed-off-by: Daniel Baluta --- Documentation/DocBook/Makefile | 2 +- Documentation/DocBook/iio.tmpl | 593 + 2

[PATCH] DocBook documentation for IIO

2015-07-08 Thread Daniel Baluta
could run make htmldocs in the root of your kernel repo to get them. Daniel Baluta (1): DocBook: Add initial documentation for IIO Documentation/DocBook/Makefile | 2 +- Documentation/DocBook/iio.tmpl | 588 + 2 files changed, 589 insertions(+), 1

[PATCH] DocBook: Add initial documentation for IIO

2015-07-08 Thread Daniel Baluta
This is intended to help developers faster find their way inside the Industrial I/O core and reduce time spent on IIO drivers development. Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- Documentation/DocBook/Makefile | 2 +- Documentation/DocBook/iio.tmpl | 593

[PATCH] DocBook documentation for IIO

2015-07-08 Thread Daniel Baluta
could run make htmldocs in the root of your kernel repo to get them. Daniel Baluta (1): DocBook: Add initial documentation for IIO Documentation/DocBook/Makefile | 2 +- Documentation/DocBook/iio.tmpl | 588 + 2 files changed, 589 insertions(+), 1

Re: [PATCH] iio: accel: kxcjk-1013: Remove blank lines

2015-07-08 Thread Daniel Baluta
...@gmail.com Looks good to me. Reviewed-by: Daniel Baluta daniel.bal...@intel.com Thanks Ana! Daniel. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please

Re: [PATCH 0/4] tools: iio: Send error messages to stderr

2015-07-07 Thread Daniel Baluta
| > - printf(e1, e2); > + fprintf(stderr, tdres, e2); > | > - fprintf(stdout, e1) > + fprintf(stderr, tdres) > | > - fprintf(stdout, e1, e2) > + fprintf(stderr, tdres, e2) > ) Nit: s/failiure/failure this appears in several places. With this fixed: Reviewed-by: Daniel

Re: [PATCH 0/4] tools: iio: Send error messages to stderr

2015-07-07 Thread Daniel Baluta
, e1, e2) + fprintf(stderr, tdres, e2) ) Nit: s/failiure/failure this appears in several places. With this fixed: Reviewed-by: Daniel Baluta daniel.bal...@intel.com thanks, Daniel. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

Re: [PATCH 1/2] iio: mma8452: add support for 3 more accelerometer chips

2015-06-30 Thread Daniel Baluta
On Tue, Jun 30, 2015 at 2:26 PM, Martin Kepplinger wrote: > The one that supports the existing event interrupt settings, uses it. The > others use their motion detection interrupts. > > This is tested on the MMA8653FC. Would be nice to explicitly add here the names of the new supported chips,

Re: [PATCH v2 1/3] iio: magnetometer: Add support for MEMSIC MMC35240 sensor

2015-06-30 Thread Daniel Baluta
On Mon, Jun 29, 2015 at 10:17 PM, Hartmut Knaack wrote: > Daniel Baluta schrieb am 29.06.2015 um 09:52: >> On Mon, Jun 29, 2015 at 2:07 AM, Hartmut Knaack wrote: >>> Daniel Baluta schrieb am 24.04.2015 um 17:58: >>>> Minimal implementation for MMC35240 3

Re: [PATCH 1/2] iio: mma8452: add support for 3 more accelerometer chips

2015-06-30 Thread Daniel Baluta
On Tue, Jun 30, 2015 at 2:26 PM, Martin Kepplinger mart...@posteo.de wrote: The one that supports the existing event interrupt settings, uses it. The others use their motion detection interrupts. This is tested on the MMA8653FC. Would be nice to explicitly add here the names of the new

Re: [PATCH v2 1/3] iio: magnetometer: Add support for MEMSIC MMC35240 sensor

2015-06-30 Thread Daniel Baluta
On Mon, Jun 29, 2015 at 10:17 PM, Hartmut Knaack knaac...@gmx.de wrote: Daniel Baluta schrieb am 29.06.2015 um 09:52: On Mon, Jun 29, 2015 at 2:07 AM, Hartmut Knaack knaac...@gmx.de wrote: Daniel Baluta schrieb am 24.04.2015 um 17:58: Minimal implementation for MMC35240 3-axis magnetometer

Re: [PATCH v2 1/3] iio: magnetometer: Add support for MEMSIC MMC35240 sensor

2015-06-29 Thread Daniel Baluta
On Mon, Jun 29, 2015 at 2:07 AM, Hartmut Knaack wrote: > Daniel Baluta schrieb am 24.04.2015 um 17:58: >> Minimal implementation for MMC35240 3-axis magnetometer >> sensor. It provides processed readings and possiblity to change >> the sampling frequency. >> > &g

Re: [PATCH v2 1/3] iio: magnetometer: Add support for MEMSIC MMC35240 sensor

2015-06-29 Thread Daniel Baluta
On Mon, Jun 29, 2015 at 2:07 AM, Hartmut Knaack knaac...@gmx.de wrote: Daniel Baluta schrieb am 24.04.2015 um 17:58: Minimal implementation for MMC35240 3-axis magnetometer sensor. It provides processed readings and possiblity to change the sampling frequency. Hi Daniel, please find a few

Re: [PATCH] iio: Fix parameters in iio_triggered_buffer_setup

2015-06-21 Thread Daniel Baluta
On Sun, Jun 14, 2015 at 1:20 PM, Jonathan Cameron wrote: > On 11/06/15 13:06, Cristina Opriceana wrote: >> This patch renames the top half handler and the bottom half handler >> of iio_triggered_buffer_setup() in accordance with their usage. >> The names of the parameters were swapped, thus

Re: [PATCH] iio: Fix parameters in iio_triggered_buffer_setup

2015-06-21 Thread Daniel Baluta
On Sun, Jun 14, 2015 at 1:20 PM, Jonathan Cameron ji...@kernel.org wrote: On 11/06/15 13:06, Cristina Opriceana wrote: This patch renames the top half handler and the bottom half handler of iio_triggered_buffer_setup() in accordance with their usage. The names of the parameters were swapped,

[PATCH v4] iio: light: Add support for ROHM RPR0521 sensor

2015-06-17 Thread Daniel Baluta
This patch adds support for ROHM RPR0521 ambient light and proximity sensor. It offers raw readings for intensity and proximity. Signed-off-by: Daniel Baluta --- Changes since v3: * use GENMASK instead BIT(x) | BIT(y) * remove (now) unused RPR0521_PXS_MAX_VAL because of PXS ABI

[PATCH v4] iio: light: Add support for ROHM RPR0521 sensor

2015-06-17 Thread Daniel Baluta
This patch adds support for ROHM RPR0521 ambient light and proximity sensor. It offers raw readings for intensity and proximity. Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- Changes since v3: * use GENMASK instead BIT(x) | BIT(y) * remove (now) unused

[PATCH] iio: magnetometer: mmc35240: Fix crash in pm suspend

2015-06-15 Thread Daniel Baluta
Trace: [ 322.573217] [<80c0d2d1>] pm_generic_suspend+0x21/0x30 [ 322.578284] [<80d042ab>] i2c_device_pm_suspend+0x1b/0x30 Fixes: 553a776b7 ("iio: magnetometer: mmc35240: Add PM sleep support") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 1 + 1 file c

[PATCH] iio: magnetometer: mmc35240: Fix crash in pm suspend

2015-06-15 Thread Daniel Baluta
: [ 322.573217] [80c0d2d1] pm_generic_suspend+0x21/0x30 [ 322.578284] [80d042ab] i2c_device_pm_suspend+0x1b/0x30 Fixes: 553a776b7 (iio: magnetometer: mmc35240: Add PM sleep support) Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio/magnetometer/mmc35240.c | 1 + 1 file changed, 1

Re: [PATCH v3] iio: light: Add support for ROHM RPR0521 sensor

2015-06-14 Thread Daniel Baluta
On Sun, Jun 14, 2015 at 1:51 PM, Jonathan Cameron wrote: > On 10/06/15 15:21, Daniel Baluta wrote: >> This patch adds support for ROHM RPR0521 ambient light and proximity >> sensor. It offers raw readings for intensity and proximity. >> >> Signed-off-by: Daniel Baluta

Re: [PATCH v3] iio: light: Add support for ROHM RPR0521 sensor

2015-06-14 Thread Daniel Baluta
On Sun, Jun 14, 2015 at 1:51 PM, Jonathan Cameron ji...@kernel.org wrote: On 10/06/15 15:21, Daniel Baluta wrote: This patch adds support for ROHM RPR0521 ambient light and proximity sensor. It offers raw readings for intensity and proximity. Signed-off-by: Daniel Baluta daniel.bal

Re: [PATCH 2/2] iio: proximity: sx9500: Fix proximity value

2015-06-13 Thread Daniel Baluta
On Sat, Jun 13, 2015 at 9:21 PM, Jonathan Cameron wrote: > On 12/06/15 08:40, Vlad Dogaru wrote: >> On Thu, Jun 11, 2015 at 06:49:34PM +0300, Daniel Baluta wrote: >>> Because of the ABI confusion proximity value exposed by SX9500 >>> was inverted. >>&

Re: [PATCH 2/2] iio: proximity: sx9500: Fix proximity value

2015-06-13 Thread Daniel Baluta
On Sat, Jun 13, 2015 at 9:21 PM, Jonathan Cameron ji...@kernel.org wrote: On 12/06/15 08:40, Vlad Dogaru wrote: On Thu, Jun 11, 2015 at 06:49:34PM +0300, Daniel Baluta wrote: Because of the ABI confusion proximity value exposed by SX9500 was inverted. Signed-off-by: Daniel Baluta daniel.bal

[PATCH 2/2] iio: proximity: sx9500: Fix proximity value

2015-06-11 Thread Daniel Baluta
Because of the ABI confusion proximity value exposed by SX9500 was inverted. Signed-off-by: Daniel Baluta --- drivers/iio/proximity/sx9500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/proximity/sx9500.c b/drivers/iio/proximity/sx9500.c index 2042e37..01494cd

[PATCH 1/2] iio: ABI: Clarify proximity output value

2015-06-11 Thread Daniel Baluta
API, while not being a true proximity sensor. Fixes: 614e8842ddf ("iio: ABI: add clarification for proximity") Signed-off-by: Daniel Baluta --- Documentation/ABI/testing/sysfs-bus-iio | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Documentation/ABI/testing/sys

[PATCH 0/2] Clarify proximity output value interpretation

2015-06-11 Thread Daniel Baluta
the fix was trivial and it is included here, for stk3310 there are more things to do and will try to fix in the near future. Daniel Baluta (2): iio: ABI: Clarify proximity output value iio: proximity: sx9500: Fix proximity value Documentation/ABI/testing/sysfs-bus-iio | 6 ++ drivers/iio

Re: [PATCH] iio: Fix parameters in iio_triggered_buffer_setup

2015-06-11 Thread Daniel Baluta
ff-by: Cristina Opriceana Reviewed-by: Daniel Baluta Thanks Cristina! Daniel. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the F

Re: [PATCH v2] iio: light: Add support for ROHM RPR0521 sensor

2015-06-11 Thread Daniel Baluta
On Sun, Jun 7, 2015 at 12:08 AM, Jonathan Cameron wrote: > > > On 06/03/2015 09:56 AM, Daniel Baluta wrote: >> >> On Thu, May 28, 2015 at 5:17 PM, Daniel Baluta >> wrote: >>> >>> >>> >>>>>>> +static const struct iio_c

Re: [PATCH v2] iio: light: Add support for ROHM RPR0521 sensor

2015-06-11 Thread Daniel Baluta
On Sun, Jun 7, 2015 at 12:08 AM, Jonathan Cameron ji...@kernel.org wrote: On 06/03/2015 09:56 AM, Daniel Baluta wrote: On Thu, May 28, 2015 at 5:17 PM, Daniel Baluta daniel.bal...@intel.com wrote: snip +static const struct iio_chan_spec rpr0521_channels

Re: [PATCH] iio: Fix parameters in iio_triggered_buffer_setup

2015-06-11 Thread Daniel Baluta
-off-by: Cristina Opriceana cristina.oprice...@gmail.com Reviewed-by: Daniel Baluta daniel.bal...@intel.com Thanks Cristina! Daniel. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

[PATCH 0/2] Clarify proximity output value interpretation

2015-06-11 Thread Daniel Baluta
the fix was trivial and it is included here, for stk3310 there are more things to do and will try to fix in the near future. Daniel Baluta (2): iio: ABI: Clarify proximity output value iio: proximity: sx9500: Fix proximity value Documentation/ABI/testing/sysfs-bus-iio | 6 ++ drivers/iio

[PATCH 2/2] iio: proximity: sx9500: Fix proximity value

2015-06-11 Thread Daniel Baluta
Because of the ABI confusion proximity value exposed by SX9500 was inverted. Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio/proximity/sx9500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/proximity/sx9500.c b/drivers/iio/proximity/sx9500.c

[PATCH 1/2] iio: ABI: Clarify proximity output value

2015-06-11 Thread Daniel Baluta
API, while not being a true proximity sensor. Fixes: 614e8842ddf (iio: ABI: add clarification for proximity) Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- Documentation/ABI/testing/sysfs-bus-iio | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Documentation/ABI

[PATCH v3] iio: light: Add support for ROHM RPR0521 sensor

2015-06-10 Thread Daniel Baluta
This patch adds support for ROHM RPR0521 ambient light and proximity sensor. It offers raw readings for intensity and proximity. Signed-off-by: Daniel Baluta --- Changes since v2: (after Peter's review) * replaced calibscale with scale * several style fixes (new lines, spellings

[PATCH v3] iio: light: Add support for ROHM RPR0521 sensor

2015-06-10 Thread Daniel Baluta
This patch adds support for ROHM RPR0521 ambient light and proximity sensor. It offers raw readings for intensity and proximity. Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- Changes since v2: (after Peter's review) * replaced calibscale with scale * several style fixes

[PATCH v2 2/6] iio: magnetometer: mmc35240: NULL terminate attribute array

2015-06-05 Thread Daniel Baluta
This avoid nasty crashes when registering the IIO device. Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/magnetometer/mmc

[PATCH v2 6/6] iio: magnetometer: mmc35240: Add compensation for raw values

2015-06-05 Thread Daniel Baluta
This patch adds compensation formula to raw readings, borrowed from Memsic's input driver. Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 62 ++--- 1 file changed, 58 insertions(+), 4 deletions(-) diff --git a/drivers/iio/magnetometer

[PATCH v2 4/6] iio: magnetometer: mmc35240: Use a smaller sleep value

2015-06-05 Thread Daniel Baluta
According to datasheet, Page 8, minimum wait time to complete measurement is 10ms. Adjusting this value will increase the userspace polling rate. Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc3

[PATCH v2 1/6] iio: magnetometer: mmc35240: i2c device name should be lower case

2015-06-05 Thread Daniel Baluta
This is the standard convention for i2c device name and also this is the name used in some Intel platforms DT files. Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 2 +- 1 file changed, 1

[PATCH v2 0/6] Memsic MMC35230 magnetometer fixes

2015-06-05 Thread Daniel Baluta
and spelling erorrs * added MMC35240_ prefix to some macro's Daniel Baluta (6): iio: magnetometer: mmc35240: i2c device name should be lower case iio: magnetometer: mmc35240: NULL terminate attribute array iio: magnetometer: mmc35240: Fix broken processed value iio

[PATCH v2 3/6] iio: magnetometer: mmc35240: Fix broken processed value

2015-06-05 Thread Daniel Baluta
operation are more relaxed. Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 43 +++-- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/drivers/iio/ma

[PATCH v2 5/6] iio: magnetometer: mmc35240: Fix sensitivity on z-axis

2015-06-05 Thread Daniel Baluta
t;iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c index 7bc72b3..73fa111 100644 ---

[PATCH v2 3/6] iio: magnetometer: mmc35240: Fix broken processed value

2015-06-05 Thread Daniel Baluta
operation are more relaxed. Fixes: abeb6b1e7b (iio: magnetometer: Add support for MEMSIC MMC35240) Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio/magnetometer/mmc35240.c | 43 +++-- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git

[PATCH v2 0/6] Memsic MMC35230 magnetometer fixes

2015-06-05 Thread Daniel Baluta
and spelling erorrs * added MMC35240_ prefix to some macro's Daniel Baluta (6): iio: magnetometer: mmc35240: i2c device name should be lower case iio: magnetometer: mmc35240: NULL terminate attribute array iio: magnetometer: mmc35240: Fix broken processed value iio

[PATCH v2 5/6] iio: magnetometer: mmc35240: Fix sensitivity on z-axis

2015-06-05 Thread Daniel Baluta
: magnetometer: Add support for MEMSIC MMC35240) Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio/magnetometer/mmc35240.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c index 7bc72b3..73fa111

[PATCH v2 6/6] iio: magnetometer: mmc35240: Add compensation for raw values

2015-06-05 Thread Daniel Baluta
This patch adds compensation formula to raw readings, borrowed from Memsic's input driver. Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio/magnetometer/mmc35240.c | 62 ++--- 1 file changed, 58 insertions(+), 4 deletions(-) diff --git

[PATCH v2 4/6] iio: magnetometer: mmc35240: Use a smaller sleep value

2015-06-05 Thread Daniel Baluta
According to datasheet, Page 8, minimum wait time to complete measurement is 10ms. Adjusting this value will increase the userspace polling rate. Fixes: abeb6b1e7b (iio: magnetometer: Add support for MEMSIC MMC35240) Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio

[PATCH v2 2/6] iio: magnetometer: mmc35240: NULL terminate attribute array

2015-06-05 Thread Daniel Baluta
This avoid nasty crashes when registering the IIO device. Fixes: abeb6b1e7b (iio: magnetometer: Add support for MEMSIC MMC35240) Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio/magnetometer/mmc35240.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio

[PATCH v2 1/6] iio: magnetometer: mmc35240: i2c device name should be lower case

2015-06-05 Thread Daniel Baluta
This is the standard convention for i2c device name and also this is the name used in some Intel platforms DT files. Fixes: abeb6b1e7b (iio: magnetometer: Add support for MEMSIC MMC35240) Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio/magnetometer/mmc35240.c | 2 +- 1 file

Re: [PATCH v2] iio: light: Add support for ROHM RPR0521 sensor

2015-06-03 Thread Daniel Baluta
On Thu, May 28, 2015 at 5:17 PM, Daniel Baluta wrote: > > >>> >> +static const struct iio_chan_spec rpr0521_channels[] = { >>> >> + { >>> >> + .type = IIO_INTENSITY, >>> >> + .mo

[PATCH 4/6] iio: magnetometer: mmc35240: Use a smaller sleep value

2015-06-03 Thread Daniel Baluta
According to datasheet, Page 8, minimum wait time to complete measurement is 10ms. Adjusting this value will increase the userspace polling rate. Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc3

[PATCH 1/6] iio: magnetometer: mmc35240: i2c device name should be lower case

2015-06-03 Thread Daniel Baluta
This is the standard convention for i2c device name and also this is the name used in some Intel platforms DT files. Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 2 +- 1 file changed, 1

[PATCH 6/6] iio: magnetometer: mmc35240: Add compensation for raw values

2015-06-03 Thread Daniel Baluta
This patch adds compensation formula to raw readings, borrowed from Memsic's input driver. Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 62 ++--- 1 file changed, 58 insertions(+), 4 deletions(-) diff --git a/drivers/iio/magnetometer

[PATCH 5/6] iio: magnetometer: mmc35240: Fix sensitivity on z-axis

2015-06-03 Thread Daniel Baluta
t;iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c index 35eb6fd..88be660 100644 ---

[PATCH 2/6] iio: magnetometer: mmc35240: NULL terminate attribute array

2015-06-03 Thread Daniel Baluta
This avoid nasty crashes when registering the IIO device. Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/magnetometer/mmc

[PATCH 3/6] iio: magnetometer: mmc35240: Fix broken processed value

2015-06-03 Thread Daniel Baluta
are more relaxed. Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240") Signed-off-by: Daniel Baluta --- drivers/iio/magnetometer/mmc35240.c | 43 +++-- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/drivers/iio/ma

[PATCH 0/6] Memsic MMC35230 magnetometer fixes

2015-06-03 Thread Daniel Baluta
First 5 patches are bugfixes or small enhancements found during tests with a real platform. The last patch adds compensation for raw values allowing proper calibration for Android compass apps. Daniel Baluta (6): iio: magnetometer: mmc35240: i2c device name should be lower case iio

[PATCH 6/6] iio: magnetometer: mmc35240: Add compensation for raw values

2015-06-03 Thread Daniel Baluta
This patch adds compensation formula to raw readings, borrowed from Memsic's input driver. Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio/magnetometer/mmc35240.c | 62 ++--- 1 file changed, 58 insertions(+), 4 deletions(-) diff --git

[PATCH 1/6] iio: magnetometer: mmc35240: i2c device name should be lower case

2015-06-03 Thread Daniel Baluta
This is the standard convention for i2c device name and also this is the name used in some Intel platforms DT files. Fixes: abeb6b1e7b (iio: magnetometer: Add support for MEMSIC MMC35240) Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio/magnetometer/mmc35240.c | 2 +- 1 file

[PATCH 4/6] iio: magnetometer: mmc35240: Use a smaller sleep value

2015-06-03 Thread Daniel Baluta
According to datasheet, Page 8, minimum wait time to complete measurement is 10ms. Adjusting this value will increase the userspace polling rate. Fixes: abeb6b1e7b (iio: magnetometer: Add support for MEMSIC MMC35240) Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio

Re: [PATCH v2] iio: light: Add support for ROHM RPR0521 sensor

2015-06-03 Thread Daniel Baluta
On Thu, May 28, 2015 at 5:17 PM, Daniel Baluta daniel.bal...@intel.com wrote: snip +static const struct iio_chan_spec rpr0521_channels[] = { + { + .type = IIO_INTENSITY, + .modified = 1, + .address = RPR0521_CHAN_ALS_DATA0

[PATCH 0/6] Memsic MMC35230 magnetometer fixes

2015-06-03 Thread Daniel Baluta
First 5 patches are bugfixes or small enhancements found during tests with a real platform. The last patch adds compensation for raw values allowing proper calibration for Android compass apps. Daniel Baluta (6): iio: magnetometer: mmc35240: i2c device name should be lower case iio

[PATCH 2/6] iio: magnetometer: mmc35240: NULL terminate attribute array

2015-06-03 Thread Daniel Baluta
This avoid nasty crashes when registering the IIO device. Fixes: abeb6b1e7b (iio: magnetometer: Add support for MEMSIC MMC35240) Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio/magnetometer/mmc35240.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio

[PATCH 5/6] iio: magnetometer: mmc35240: Fix sensitivity on z-axis

2015-06-03 Thread Daniel Baluta
: magnetometer: Add support for MEMSIC MMC35240) Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio/magnetometer/mmc35240.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c index 35eb6fd..88be660

[PATCH 3/6] iio: magnetometer: mmc35240: Fix broken processed value

2015-06-03 Thread Daniel Baluta
are more relaxed. Fixes: abeb6b1e7b (iio: magnetometer: Add support for MEMSIC MMC35240) Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio/magnetometer/mmc35240.c | 43 +++-- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/drivers

Re: [PATCH v2] iio: light: Add support for ROHM RPR0521 sensor

2015-05-28 Thread Daniel Baluta
>> >> +static const struct iio_chan_spec rpr0521_channels[] = { >> >> + { >> >> + .type = IIO_INTENSITY, >> >> + .modified = 1, >> >> + .address = RPR0521_CHAN_ALS_DATA0, >> >> + .channel2 = IIO_MOD_LIGHT_BOTH, >> >> +

Re: [PATCH v2] iio: light: Add support for ROHM RPR0521 sensor

2015-05-28 Thread Daniel Baluta
On Thu, May 28, 2015 at 2:35 PM, Peter Meerwald wrote: > On Thu, 28 May 2015, Daniel Baluta wrote: > >> This patch adds support for ROHM RPR0521 ambient light and proximity >> sensor. It offers raw readings for intensity and proximity. > > comments below > >

[PATCH v2] iio: light: Add support for ROHM RPR0521 sensor

2015-05-28 Thread Daniel Baluta
This patch adds support for ROHM RPR0521 ambient light and proximity sensor. It offers raw readings for intensity and proximity. Signed-off-by: Daniel Baluta --- Changes since v1: (after Jonathan's review) * add static const to some structures * make some local functions static

[PATCH v2] iio: light: Add support for ROHM RPR0521 sensor

2015-05-28 Thread Daniel Baluta
This patch adds support for ROHM RPR0521 ambient light and proximity sensor. It offers raw readings for intensity and proximity. Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- Changes since v1: (after Jonathan's review) * add static const to some structures * make some

Re: [PATCH v2] iio: light: Add support for ROHM RPR0521 sensor

2015-05-28 Thread Daniel Baluta
On Thu, May 28, 2015 at 2:35 PM, Peter Meerwald pme...@pmeerw.net wrote: On Thu, 28 May 2015, Daniel Baluta wrote: This patch adds support for ROHM RPR0521 ambient light and proximity sensor. It offers raw readings for intensity and proximity. comments below Signed-off-by: Daniel Baluta

Re: [PATCH v2] iio: light: Add support for ROHM RPR0521 sensor

2015-05-28 Thread Daniel Baluta
snip +static const struct iio_chan_spec rpr0521_channels[] = { + { + .type = IIO_INTENSITY, + .modified = 1, + .address = RPR0521_CHAN_ALS_DATA0, + .channel2 = IIO_MOD_LIGHT_BOTH, + .info_mask_separate =

Re: [PATCH] iio: light: Add support for ROHM RPR0521 sensor

2015-05-25 Thread Daniel Baluta
On Sat, May 23, 2015 at 1:51 PM, Jonathan Cameron wrote: > On 22/05/15 13:36, Daniel Baluta wrote: >> This patch adds support for ROHM RPR0521 ambient light and proximity >> sensor. It offers raw readings for intensity and proximity. >> >> Signed-off-by: Daniel Baluta

Re: [PATCH] iio: light: Add support for ROHM RPR0521 sensor

2015-05-25 Thread Daniel Baluta
On Sat, May 23, 2015 at 1:51 PM, Jonathan Cameron ji...@kernel.org wrote: On 22/05/15 13:36, Daniel Baluta wrote: This patch adds support for ROHM RPR0521 ambient light and proximity sensor. It offers raw readings for intensity and proximity. Signed-off-by: Daniel Baluta daniel.bal

[PATCH] iio: light: Add support for ROHM RPR0521 sensor

2015-05-22 Thread Daniel Baluta
This patch adds support for ROHM RPR0521 ambient light and proximity sensor. It offers raw readings for intensity and proximity. Signed-off-by: Daniel Baluta --- drivers/iio/light/Kconfig | 11 + drivers/iio/light/Makefile | 1 + drivers/iio/light/rpr0521.c | 579

Re: [PATCH 1/6] iio: light: Updated Vishay Capella cm32181 ambient light sensor driver. - Renamed company name. - Removed cm32181_reg. - Removed white space. - Removed unused include files. - Updated

2015-05-22 Thread Daniel Baluta
On Fri, May 22, 2015 at 4:56 AM, Greg KH wrote: > On Thu, May 21, 2015 at 05:30:40PM -0700, Kevin Tsai wrote: >> Signed-off-by: Kevin Tsai >> --- > > Your whole changelog ended up in the Subject line :( Hi Kevin, Few comments: 1) Please also add a cover letter. Use --cover-letter parameter of

Re: [PATCH 1/6] iio: light: Updated Vishay Capella cm32181 ambient light sensor driver. - Renamed company name. - Removed cm32181_reg. - Removed white space. - Removed unused include files. - Updated

2015-05-22 Thread Daniel Baluta
On Fri, May 22, 2015 at 4:56 AM, Greg KH gre...@linuxfoundation.org wrote: On Thu, May 21, 2015 at 05:30:40PM -0700, Kevin Tsai wrote: Signed-off-by: Kevin Tsai kt...@capellamicro.com --- Your whole changelog ended up in the Subject line :( Hi Kevin, Few comments: 1) Please also add a

[PATCH] iio: light: Add support for ROHM RPR0521 sensor

2015-05-22 Thread Daniel Baluta
This patch adds support for ROHM RPR0521 ambient light and proximity sensor. It offers raw readings for intensity and proximity. Signed-off-by: Daniel Baluta daniel.bal...@intel.com --- drivers/iio/light/Kconfig | 11 + drivers/iio/light/Makefile | 1 + drivers/iio/light/rpr0521.c | 579

Re: [RFC PATCH 1/2] iio: pm_runtime: Introduce PM runtime helper functions

2015-05-18 Thread Daniel Baluta
ctionality needed. On Mon, May 18, 2015 at 8:34 PM, Peter Meerwald wrote: > On Mon, 18 May 2015, Daniel Baluta wrote: > >> We need this in order to avoid reimplementing the same functions each time >> we add PM runtime support in a driver. > > comments below > >

<    5   6   7   8   9   10   11   12   13   14   >