All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: consumer.h: Fix scale factor in function comment
@ 2014-09-23 12:51 ` Ivan T. Ivanov
  0 siblings, 0 replies; 3+ messages in thread
From: Ivan T. Ivanov @ 2014-09-23 12:51 UTC (permalink / raw)
  Cc: Ivan T. Ivanov, Sebastian Reichel, Jonathan Cameron, lars,
	linux-kernel, linux-arm-msm

1 milivolt is equal to 1000000 nanovolts.

Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
---
 include/linux/iio/consumer.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/iio/consumer.h b/include/linux/iio/consumer.h
index 651f9a0..087af10 100644
--- a/include/linux/iio/consumer.h
+++ b/include/linux/iio/consumer.h
@@ -191,7 +191,7 @@ int iio_read_channel_scale(struct iio_channel *chan, int *val,
  * The scale factor allows to increase the precession of the returned value. For
  * a scale factor of 1 the function will return the result in the normal IIO
  * unit for the channel type. E.g. millivolt for voltage channels, if you want
- * nanovolts instead pass 1000 as the scale factor.
+ * nanovolts instead pass 1000000 as the scale factor.
  */
 int iio_convert_raw_to_processed(struct iio_channel *chan, int raw,
 	int *processed, unsigned int scale);
-- 
1.9.1

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

* [PATCH] iio: consumer.h: Fix scale factor in function comment
@ 2014-09-23 12:51 ` Ivan T. Ivanov
  0 siblings, 0 replies; 3+ messages in thread
From: Ivan T. Ivanov @ 2014-09-23 12:51 UTC (permalink / raw)
  Cc: Ivan T. Ivanov, Sebastian Reichel, Jonathan Cameron, lars,
	linux-kernel, linux-arm-msm

1 milivolt is equal to 1000000 nanovolts.

Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
---
 include/linux/iio/consumer.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/iio/consumer.h b/include/linux/iio/consumer.h
index 651f9a0..087af10 100644
--- a/include/linux/iio/consumer.h
+++ b/include/linux/iio/consumer.h
@@ -191,7 +191,7 @@ int iio_read_channel_scale(struct iio_channel *chan, int *val,
  * The scale factor allows to increase the precession of the returned value. For
  * a scale factor of 1 the function will return the result in the normal IIO
  * unit for the channel type. E.g. millivolt for voltage channels, if you want
- * nanovolts instead pass 1000 as the scale factor.
+ * nanovolts instead pass 1000000 as the scale factor.
  */
 int iio_convert_raw_to_processed(struct iio_channel *chan, int raw,
 	int *processed, unsigned int scale);
-- 
1.9.1


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

* Re: [PATCH] iio: consumer.h: Fix scale factor in function comment
  2014-09-23 12:51 ` Ivan T. Ivanov
  (?)
@ 2014-12-12 11:24 ` Jonathan Cameron
  -1 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2014-12-12 11:24 UTC (permalink / raw)
  To: Ivan T. Ivanov; +Cc: Sebastian Reichel, lars, linux-kernel, linux-arm-msm

On 23/09/14 13:51, Ivan T. Ivanov wrote:
> 1 milivolt is equal to 1000000 nanovolts.
> 
> Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
Good catch - applied to the togreg branch of iio.git.
Will initially push that as testing sometime later today
for the autobuilders to play.

Thanks,

Jonathan
> ---
>  include/linux/iio/consumer.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/iio/consumer.h b/include/linux/iio/consumer.h
> index 651f9a0..087af10 100644
> --- a/include/linux/iio/consumer.h
> +++ b/include/linux/iio/consumer.h
> @@ -191,7 +191,7 @@ int iio_read_channel_scale(struct iio_channel *chan, int *val,
>   * The scale factor allows to increase the precession of the returned value. For
>   * a scale factor of 1 the function will return the result in the normal IIO
>   * unit for the channel type. E.g. millivolt for voltage channels, if you want
> - * nanovolts instead pass 1000 as the scale factor.
> + * nanovolts instead pass 1000000 as the scale factor.
>   */
>  int iio_convert_raw_to_processed(struct iio_channel *chan, int raw,
>  	int *processed, unsigned int scale);
> 

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

end of thread, other threads:[~2014-12-12 11:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-23 12:51 [PATCH] iio: consumer.h: Fix scale factor in function comment Ivan T. Ivanov
2014-09-23 12:51 ` Ivan T. Ivanov
2014-12-12 11:24 ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.