iio: magnetometer: mmc35240: Add compensation for raw values
authorDaniel Baluta <daniel.baluta@intel.com>
Fri, 5 Jun 2015 11:03:15 +0000 (14:03 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 7 Jun 2015 15:33:25 +0000 (16:33 +0100)
commit4892688d7004c004765a51976087a8f51ce3586d
tree5110a0092574fe5f1bf56ed57b8cc483881dee50
parent6b90da4b58b39a80f490479953aa2563c3c41a6d
iio: magnetometer: mmc35240: Add compensation for raw values

This patch adds compensation formula to raw readings, borrowed
from Memsic's input driver.

Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/mmc35240.c