From: Daniel Baluta <daniel.baluta@intel.com>
To: jic23@kernel.org
Cc: daniel.baluta@intel.com, pmeerw@pmeerw.net, knaack.h@gmx.de,
lars@metafoo.de, linux-kernel@vger.kernel.org,
linux-iio@vger.kernel.org
Subject: [PATCH 5/6] iio: magnetometer: mmc35240: Fix sensitivity on z-axis
Date: Wed, 3 Jun 2015 11:33:57 +0300 [thread overview]
Message-ID: <1433320438-23870-6-git-send-email-daniel.baluta@intel.com> (raw)
In-Reply-To: <1433320438-23870-1-git-send-email-daniel.baluta@intel.com>
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>
---
drivers/iio/magnetometer/mmc35240.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/magnetometer/mmc35240.c b/drivers/iio/magnetometer/mmc35240.c
index 35eb6fd..88be660 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 */
--
1.9.1
next prev parent reply other threads:[~2015-06-03 8:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-03 8:33 [PATCH 0/6] Memsic MMC35230 magnetometer fixes Daniel Baluta
2015-06-03 8:33 ` [PATCH 1/6] iio: magnetometer: mmc35240: i2c device name should be lower case Daniel Baluta
2015-06-03 8:33 ` [PATCH 2/6] iio: magnetometer: mmc35240: NULL terminate attribute array Daniel Baluta
2015-06-03 8:33 ` [PATCH 3/6] iio: magnetometer: mmc35240: Fix broken processed value Daniel Baluta
2015-06-03 8:44 ` Peter Meerwald
2015-06-03 8:33 ` [PATCH 4/6] iio: magnetometer: mmc35240: Use a smaller sleep value Daniel Baluta
2015-06-03 8:33 ` Daniel Baluta [this message]
2015-06-03 8:33 ` [PATCH 6/6] iio: magnetometer: mmc35240: Add compensation for raw values Daniel Baluta
2015-06-03 8:42 ` Peter Meerwald
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1433320438-23870-6-git-send-email-daniel.baluta@intel.com \
--to=daniel.baluta@intel.com \
--cc=jic23@kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pmeerw@pmeerw.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).