summaryrefslogtreecommitdiffstats
path: root/drivers/iio/magnetometer
diff options
context:
space:
mode:
authorPeter Meerwald <pmeerw@pmeerw.net>2013-10-19 18:17:00 +0100
committerJonathan Cameron <jic23@kernel.org>2013-10-20 22:36:13 +0100
commiteb03610a9ceb4ebbe70c4a68a5bf9fb509a233c3 (patch)
tree0abfc105462a2670e371833f4c108ee9f241addd /drivers/iio/magnetometer
parent207287595bb2e9070d45780382f115fcd42e893d (diff)
downloadop-kernel-dev-eb03610a9ceb4ebbe70c4a68a5bf9fb509a233c3.zip
op-kernel-dev-eb03610a9ceb4ebbe70c4a68a5bf9fb509a233c3.tar.gz
iio: Correct description how to convert microtesla to gauss
this just fixes the comment; however, I'm not sure if the driver reports measurements correctly; the raw values are 0.3 uT / LSB; IIO is supposed to report magnetic fields in Gauss, so the scale should be around 1/300 (ignoring ASA) -- but value and scale are returned as VAL_INT Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/magnetometer')
-rw-r--r--drivers/iio/magnetometer/ak8975.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/magnetometer/ak8975.c b/drivers/iio/magnetometer/ak8975.c
index 7105f22..ff284e5 100644
--- a/drivers/iio/magnetometer/ak8975.c
+++ b/drivers/iio/magnetometer/ak8975.c
@@ -263,7 +263,7 @@ static int ak8975_setup(struct i2c_client *client)
*
* HuT = H * 1229/4096, or roughly, 3/10.
*
- * Since 1uT = 100 gauss, our final scale factor becomes:
+ * Since 1uT = 0.01 gauss, our final scale factor becomes:
*
* Hadj = H * ((ASA + 128) / 256) * 3/10 * 100
* Hadj = H * ((ASA + 128) * 30 / 256
OpenPOWER on IntegriCloud