Skip to contentSkip to conversation

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

PATCH In review Ivan T. Ivanov 2 participants 2 messages Sep 23, 2014 – Dec 12, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: consumer.h: Fix scale factor in function comment

1 milivolt is equal to 1000000 nanovolts.

---
 include/linux/iio/consumer.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/iio/consumer.h +1 -1
index 651f9a0..087af10 100644
@@ -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);
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 3 lines · Ivan T. Ivanov

1 milivolt is equal to 1000000 nanovolts.

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

Quoted 18 lines
---
 include/linux/iio/consumer.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/iio/consumer.h +1 -1
index 651f9a0..087af10 100644
@@ -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);