linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] iio: staging: fix device.txt documentation
@ 2013-07-07 20:24 Peter Meerwald
  2013-07-07 20:24 ` [PATCH 2/5] iio: fix typo, Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350 Peter Meerwald
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Peter Meerwald @ 2013-07-07 20:24 UTC (permalink / raw)
  To: linux-iio; +Cc: Peter Meerwald

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
---
 drivers/staging/iio/Documentation/device.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/iio/Documentation/device.txt b/drivers/staging/iio/Documentation/device.txt
index ea08d62..8be32e5 100644
--- a/drivers/staging/iio/Documentation/device.txt
+++ b/drivers/staging/iio/Documentation/device.txt
@@ -56,7 +56,7 @@ Then fill in the following:
 
 - indio_dev->modes:
 	Specify whether direct access and / or ring buffer access is supported.
-- indio_dev->ring:
+- indio_dev->buffer:
 	An optional associated buffer.
 - indio_dev->pollfunc:
 	Poll function related elements. This controls what occurs when a trigger
@@ -67,7 +67,7 @@ Then fill in the following:
 - indio_dev->num_channels:
 	How many channels are there?
 
-Once these are set up, a call to iio_device_register(indio_dev),
+Once these are set up, a call to iio_device_register(indio_dev)
 will register the device with the iio core.
 
 Worth noting here is that, if a ring buffer is to be used, it can be
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/5] iio: fix typo, Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350
  2013-07-07 20:24 [PATCH 1/5] iio: staging: fix device.txt documentation Peter Meerwald
@ 2013-07-07 20:24 ` Peter Meerwald
  2013-07-09 21:15   ` Jonathan Cameron
  2013-07-07 20:24 ` [PATCH 3/5] iio: staging: fix typo in ade758_ring.c Peter Meerwald
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 10+ messages in thread
From: Peter Meerwald @ 2013-07-07 20:24 UTC (permalink / raw)
  To: linux-iio; +Cc: Peter Meerwald

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
---
 Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350 b/Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350
index d89aded..1254457 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350
+++ b/Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350
@@ -18,4 +18,4 @@ Description:
 		adjust the reference frequency accordingly.
 		The value written has no effect until out_altvoltageY_frequency
 		is updated. Consider to use out_altvoltageY_powerdown to power
-		down the PLL and it's RFOut buffers during REFin changes.
+		down the PLL and its RFOut buffers during REFin changes.
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 3/5] iio: staging: fix typo in ade758_ring.c
  2013-07-07 20:24 [PATCH 1/5] iio: staging: fix device.txt documentation Peter Meerwald
  2013-07-07 20:24 ` [PATCH 2/5] iio: fix typo, Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350 Peter Meerwald
@ 2013-07-07 20:24 ` Peter Meerwald
  2013-07-09 21:15   ` Jonathan Cameron
  2013-07-07 20:24 ` [PATCH 4/5] iio staging: fix lis3l02dq, read error handling Peter Meerwald
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 10+ messages in thread
From: Peter Meerwald @ 2013-07-07 20:24 UTC (permalink / raw)
  To: linux-iio; +Cc: Peter Meerwald

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
---
 drivers/staging/iio/meter/ade7758_ring.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/iio/meter/ade7758_ring.c b/drivers/staging/iio/meter/ade7758_ring.c
index b29e2d5..7d5db71 100644
--- a/drivers/staging/iio/meter/ade7758_ring.c
+++ b/drivers/staging/iio/meter/ade7758_ring.c
@@ -54,7 +54,7 @@ out:
 	return ret;
 }
 
-/* Whilst this makes a lot of calls to iio_sw_ring functions - it is to device
+/* Whilst this makes a lot of calls to iio_sw_ring functions - it is too device
  * specific to be rolled into the core.
  */
 static irqreturn_t ade7758_trigger_handler(int irq, void *p)
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 4/5] iio staging: fix lis3l02dq, read error handling
  2013-07-07 20:24 [PATCH 1/5] iio: staging: fix device.txt documentation Peter Meerwald
  2013-07-07 20:24 ` [PATCH 2/5] iio: fix typo, Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350 Peter Meerwald
  2013-07-07 20:24 ` [PATCH 3/5] iio: staging: fix typo in ade758_ring.c Peter Meerwald
@ 2013-07-07 20:24 ` Peter Meerwald
  2013-07-09 21:14   ` Jonathan Cameron
  2013-07-07 20:24 ` [PATCH 5/5] iio: fix semicolon in io_core_trigger.h Peter Meerwald
  2013-07-09 21:15 ` [PATCH 1/5] iio: staging: fix device.txt documentation Jonathan Cameron
  4 siblings, 1 reply; 10+ messages in thread
From: Peter Meerwald @ 2013-07-07 20:24 UTC (permalink / raw)
  To: linux-iio; +Cc: Peter Meerwald

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
---
 drivers/staging/iio/accel/lis3l02dq_core.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/staging/iio/accel/lis3l02dq_core.c b/drivers/staging/iio/accel/lis3l02dq_core.c
index 1bfe5d8..8ed75a9 100644
--- a/drivers/staging/iio/accel/lis3l02dq_core.c
+++ b/drivers/staging/iio/accel/lis3l02dq_core.c
@@ -257,6 +257,8 @@ static int lis3l02dq_read_raw(struct iio_dev *indio_dev,
 			ret = lis3l02dq_read_reg_s16(indio_dev, reg, val);
 		}
 		mutex_unlock(&indio_dev->mlock);
+		if (ret < 0)
+			goto error_ret;
 		return IIO_VAL_INT;
 	case IIO_CHAN_INFO_SCALE:
 		*val = 0;
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 5/5] iio: fix semicolon in io_core_trigger.h
  2013-07-07 20:24 [PATCH 1/5] iio: staging: fix device.txt documentation Peter Meerwald
                   ` (2 preceding siblings ...)
  2013-07-07 20:24 ` [PATCH 4/5] iio staging: fix lis3l02dq, read error handling Peter Meerwald
@ 2013-07-07 20:24 ` Peter Meerwald
  2013-07-09 21:16   ` Jonathan Cameron
  2013-07-09 21:15 ` [PATCH 1/5] iio: staging: fix device.txt documentation Jonathan Cameron
  4 siblings, 1 reply; 10+ messages in thread
From: Peter Meerwald @ 2013-07-07 20:24 UTC (permalink / raw)
  To: linux-iio; +Cc: Peter Meerwald

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
---
 drivers/iio/iio_core_trigger.h | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/iio/iio_core_trigger.h b/drivers/iio/iio_core_trigger.h
index 6f7c56f..1fdb1e4 100644
--- a/drivers/iio/iio_core_trigger.h
+++ b/drivers/iio/iio_core_trigger.h
@@ -30,7 +30,7 @@ void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev);
 static int iio_device_register_trigger_consumer(struct iio_dev *indio_dev)
 {
 	return 0;
-};
+}
 
 /**
  * iio_device_unregister_trigger_consumer() - reverse the registration process
@@ -38,9 +38,6 @@ static int iio_device_register_trigger_consumer(struct iio_dev *indio_dev)
  **/
 static void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev)
 {
-};
+}
 
 #endif /* CONFIG_TRIGGER_CONSUMER */
-
-
-
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 4/5] iio staging: fix lis3l02dq, read error handling
  2013-07-07 20:24 ` [PATCH 4/5] iio staging: fix lis3l02dq, read error handling Peter Meerwald
@ 2013-07-09 21:14   ` Jonathan Cameron
  0 siblings, 0 replies; 10+ messages in thread
From: Jonathan Cameron @ 2013-07-09 21:14 UTC (permalink / raw)
  To: Peter Meerwald; +Cc: linux-iio

On 07/07/2013 09:24 PM, Peter Meerwald wrote:
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Applied to the fixes-togreg branch of iio.git

Peter, just as an aside please separate out actual code
fixes like this one into separate series from the comment typo fixes.
Whilst both are worthwhile, comment typos can always wait for the
next merge window, but code fixes want to go in asap and perhaps
back into stable.
> ---
>  drivers/staging/iio/accel/lis3l02dq_core.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/staging/iio/accel/lis3l02dq_core.c b/drivers/staging/iio/accel/lis3l02dq_core.c
> index 1bfe5d8..8ed75a9 100644
> --- a/drivers/staging/iio/accel/lis3l02dq_core.c
> +++ b/drivers/staging/iio/accel/lis3l02dq_core.c
> @@ -257,6 +257,8 @@ static int lis3l02dq_read_raw(struct iio_dev *indio_dev,
>  			ret = lis3l02dq_read_reg_s16(indio_dev, reg, val);
>  		}
>  		mutex_unlock(&indio_dev->mlock);
> +		if (ret < 0)
> +			goto error_ret;
>  		return IIO_VAL_INT;
>  	case IIO_CHAN_INFO_SCALE:
>  		*val = 0;
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/5] iio: staging: fix device.txt documentation
  2013-07-07 20:24 [PATCH 1/5] iio: staging: fix device.txt documentation Peter Meerwald
                   ` (3 preceding siblings ...)
  2013-07-07 20:24 ` [PATCH 5/5] iio: fix semicolon in io_core_trigger.h Peter Meerwald
@ 2013-07-09 21:15 ` Jonathan Cameron
  4 siblings, 0 replies; 10+ messages in thread
From: Jonathan Cameron @ 2013-07-09 21:15 UTC (permalink / raw)
  To: Peter Meerwald; +Cc: linux-iio

On 07/07/2013 09:24 PM, Peter Meerwald wrote:
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
applied to the togreg branch of iio.git.
Thanks.
> ---
>  drivers/staging/iio/Documentation/device.txt | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/iio/Documentation/device.txt b/drivers/staging/iio/Documentation/device.txt
> index ea08d62..8be32e5 100644
> --- a/drivers/staging/iio/Documentation/device.txt
> +++ b/drivers/staging/iio/Documentation/device.txt
> @@ -56,7 +56,7 @@ Then fill in the following:
>  
>  - indio_dev->modes:
>  	Specify whether direct access and / or ring buffer access is supported.
> -- indio_dev->ring:
> +- indio_dev->buffer:
>  	An optional associated buffer.
>  - indio_dev->pollfunc:
>  	Poll function related elements. This controls what occurs when a trigger
> @@ -67,7 +67,7 @@ Then fill in the following:
>  - indio_dev->num_channels:
>  	How many channels are there?
>  
> -Once these are set up, a call to iio_device_register(indio_dev),
> +Once these are set up, a call to iio_device_register(indio_dev)
>  will register the device with the iio core.
>  
>  Worth noting here is that, if a ring buffer is to be used, it can be
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/5] iio: fix typo, Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350
  2013-07-07 20:24 ` [PATCH 2/5] iio: fix typo, Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350 Peter Meerwald
@ 2013-07-09 21:15   ` Jonathan Cameron
  0 siblings, 0 replies; 10+ messages in thread
From: Jonathan Cameron @ 2013-07-09 21:15 UTC (permalink / raw)
  To: Peter Meerwald; +Cc: linux-iio

On 07/07/2013 09:24 PM, Peter Meerwald wrote:
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Applied to the togreg branch of iio.git
> ---
>  Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350 b/Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350
> index d89aded..1254457 100644
> --- a/Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350
> +++ b/Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350
> @@ -18,4 +18,4 @@ Description:
>  		adjust the reference frequency accordingly.
>  		The value written has no effect until out_altvoltageY_frequency
>  		is updated. Consider to use out_altvoltageY_powerdown to power
> -		down the PLL and it's RFOut buffers during REFin changes.
> +		down the PLL and its RFOut buffers during REFin changes.
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 3/5] iio: staging: fix typo in ade758_ring.c
  2013-07-07 20:24 ` [PATCH 3/5] iio: staging: fix typo in ade758_ring.c Peter Meerwald
@ 2013-07-09 21:15   ` Jonathan Cameron
  0 siblings, 0 replies; 10+ messages in thread
From: Jonathan Cameron @ 2013-07-09 21:15 UTC (permalink / raw)
  To: Peter Meerwald; +Cc: linux-iio

On 07/07/2013 09:24 PM, Peter Meerwald wrote:
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
applied to the togreg branch of iio.git
> ---
>  drivers/staging/iio/meter/ade7758_ring.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/iio/meter/ade7758_ring.c b/drivers/staging/iio/meter/ade7758_ring.c
> index b29e2d5..7d5db71 100644
> --- a/drivers/staging/iio/meter/ade7758_ring.c
> +++ b/drivers/staging/iio/meter/ade7758_ring.c
> @@ -54,7 +54,7 @@ out:
>  	return ret;
>  }
>  
> -/* Whilst this makes a lot of calls to iio_sw_ring functions - it is to device
> +/* Whilst this makes a lot of calls to iio_sw_ring functions - it is too device
>   * specific to be rolled into the core.
>   */
>  static irqreturn_t ade7758_trigger_handler(int irq, void *p)
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 5/5] iio: fix semicolon in io_core_trigger.h
  2013-07-07 20:24 ` [PATCH 5/5] iio: fix semicolon in io_core_trigger.h Peter Meerwald
@ 2013-07-09 21:16   ` Jonathan Cameron
  0 siblings, 0 replies; 10+ messages in thread
From: Jonathan Cameron @ 2013-07-09 21:16 UTC (permalink / raw)
  To: Peter Meerwald; +Cc: linux-iio

On 07/07/2013 09:24 PM, Peter Meerwald wrote:
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Applied to the togreg branch of iio.git

Thanks,
> ---
>  drivers/iio/iio_core_trigger.h | 7 ++-----
>  1 file changed, 2 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/iio/iio_core_trigger.h b/drivers/iio/iio_core_trigger.h
> index 6f7c56f..1fdb1e4 100644
> --- a/drivers/iio/iio_core_trigger.h
> +++ b/drivers/iio/iio_core_trigger.h
> @@ -30,7 +30,7 @@ void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev);
>  static int iio_device_register_trigger_consumer(struct iio_dev *indio_dev)
>  {
>  	return 0;
> -};
> +}
>  
>  /**
>   * iio_device_unregister_trigger_consumer() - reverse the registration process
> @@ -38,9 +38,6 @@ static int iio_device_register_trigger_consumer(struct iio_dev *indio_dev)
>   **/
>  static void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev)
>  {
> -};
> +}
>  
>  #endif /* CONFIG_TRIGGER_CONSUMER */
> -
> -
> -
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-07-09 21:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-07 20:24 [PATCH 1/5] iio: staging: fix device.txt documentation Peter Meerwald
2013-07-07 20:24 ` [PATCH 2/5] iio: fix typo, Documentation/ABI/testing/sysfs-bus-iio-frequency-adf4350 Peter Meerwald
2013-07-09 21:15   ` Jonathan Cameron
2013-07-07 20:24 ` [PATCH 3/5] iio: staging: fix typo in ade758_ring.c Peter Meerwald
2013-07-09 21:15   ` Jonathan Cameron
2013-07-07 20:24 ` [PATCH 4/5] iio staging: fix lis3l02dq, read error handling Peter Meerwald
2013-07-09 21:14   ` Jonathan Cameron
2013-07-07 20:24 ` [PATCH 5/5] iio: fix semicolon in io_core_trigger.h Peter Meerwald
2013-07-09 21:16   ` Jonathan Cameron
2013-07-09 21:15 ` [PATCH 1/5] iio: staging: fix device.txt documentation Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).