iio: magnetometer: mmc35240: Fix sensitivity on z-axis
authorDaniel Baluta <daniel.baluta@intel.com>
Fri, 5 Jun 2015 11:03:14 +0000 (14:03 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 7 Jun 2015 15:33:22 +0000 (16:33 +0100)
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>
drivers/iio/magnetometer/mmc35240.c

index 7fdf906b94c902e85183bc30b43f71f50bd6736b..b2ab58ea15f015faa5f61439e51414f02a0e06b9 100644 (file)
@@ -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 */
This page took 0.024995 seconds and 5 git commands to generate.