lkml.org 
[lkml]   [2015]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 5/6] iio: magnetometer: mmc35240: Fix sensitivity on z-axis
On 05/06/15 12:03, Daniel Baluta wrote:
> 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>
applied
> ---
> 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 7bc72b3..73fa111 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 */
>



\
 
 \ /
  Last update: 2015-06-07 18:01    [W:1.752 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site