diff options
author | Daniel Baluta <daniel.baluta@intel.com> | 2015-06-05 14:03:14 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-06-07 16:33:22 +0100 |
commit | 6b90da4b58b39a80f490479953aa2563c3c41a6d (patch) | |
tree | ad7f2d810aef666ee41e37a7cc878cae70053e80 /drivers/iio | |
parent | 787f55c4d1842e5fb037a81bca9bd9d9fdfd46fe (diff) | |
download | blackbird-op-linux-6b90da4b58b39a80f490479953aa2563c3c41a6d.tar.gz blackbird-op-linux-6b90da4b58b39a80f490479953aa2563c3c41a6d.zip |
iio: magnetometer: mmc35240: Fix sensitivity on z-axis
Datasheet says (Page 2) that typical value for sensitivity
for 16 bits mode on Z-axis is 770. Anyhow, looking at the
input driver provided by Memsic the value for MMC35240 is
1024.
Also, testing shows that using 1024 for Z-axis senzitivity
offers better results.
Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240")
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/magnetometer/mmc35240.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c index 7fdf906b94c9..b2ab58ea15f0 100644 --- a/drivers/iio/magnetometer/mmc35240.c +++ b/drivers/iio/magnetometer/mmc35240.c @@ -77,7 +77,7 @@ static const struct { } mmc35240_props_table[] = { /* 16 bits, 100Hz ODR */ { - {1024, 1024, 770}, + {1024, 1024, 1024}, 32768, }, /* 16 bits, 200Hz ODR */ |