Re: [PATCH 3/6] iio: magnetometer: mmc35240: Fix broken processed value

2015-06-03 Thread Peter Meerwald
On Wed, 3 Jun 2015, Daniel Baluta wrote: > 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 mili Gauss (to avoid > rounding errors) with a scale of 0.001. milli comments below > > T

[PATCH 3/6] iio: magnetometer: mmc35240: Fix broken processed value

2015-06-03 Thread Daniel Baluta
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 mili Gauss (to avoid rounding errors) with a scale of 0.001. Thus the final computation is done in userspace where floating point operation