diff options
| author | Daniel Baluta <daniel.baluta@intel.com> | 2015-06-05 14:03:12 +0300 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2015-06-07 16:33:18 +0100 |
| commit | c2890547a035e019df646be5d56adc0ee1b0a327 (patch) | |
| tree | ac91a209896814deb26e737af1f3bd343807dd96 /tools/perf/scripts/python | |
| parent | bd35a214f56158d11e46c4a9d8436139f58e7099 (diff) | |
iio: magnetometer: mmc35240: Fix broken processed value
The current computation for fractional part of the magnetic
field is broken. This patch fixes it by taking a different
approach. We expose the raw reading in milli Gauss (to avoid
rounding errors) with a scale of 0.001.
Thus the final computation is done in userspace where floating
point operation are more relaxed.
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
