diff mbox

iio: consumer.h: Fix scale factor in function comment

Message ID 1411476702-10004-1-git-send-email-iivanov@mm-sol.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ivan T. Ivanov Sept. 23, 2014, 12:51 p.m. UTC
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(-)

Comments

Jonathan Cameron Dec. 12, 2014, 11:24 a.m. UTC | #1
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);
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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);