remarkable-linux/drivers/iio/magnetometer
Beomho Seo bef44abccb iio: ak8975: Fix calculation formula for convert micro tesla to gauss unit
This effects the reported scale of the raw values, and thus userspace
applications that use this value.

One micro tesla equal 0.01 gauss. So I have fixed calculation formula And add RAW_TO_GAUSS macro.
ASA is in the range of 0 to 255. If multiply 0.003, calculation result(in_magn_[*]_scale) is
always 0. So multiply 3000 and return and IIO_VAL_INT_PLUS_MICRO.
As a result, read_raw call back function return accurate scale value.

Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2014-02-08 10:28:05 +00:00
..
ak8975.c iio: ak8975: Fix calculation formula for convert micro tesla to gauss unit 2014-02-08 10:28:05 +00:00
hid-sensor-magn-3d.c Merge v3.13-rc2 into staging-next 2013-12-02 16:39:07 -08:00
Kconfig iio: Fix mag3110 Kconfig dependencies 2013-11-09 12:15:34 +00:00
mag3110.c iio:magnetometer:mag3110: Fix output of decimal digits in show_int_plus_micros() 2014-02-08 10:06:27 +00:00
Makefile iio: Add Freescale mag3110 magnetometer driver 2013-10-23 17:43:11 +01:00
st_magn.h iio: Added ST-sensors platform data to select the DRDY interrupt pin 2013-08-03 18:40:28 +01:00
st_magn_buffer.c iio:st_magn: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:13:50 +01:00
st_magn_core.c Merge 3.12-rc4 into staging-next 2013-10-06 17:22:43 -07:00
st_magn_i2c.c iio: magnetometer: st_magn: Use devm_iio_device_alloc 2013-08-03 18:43:14 +01:00
st_magn_spi.c iio: magnetometer: st_magn: Use devm_iio_device_alloc 2013-08-03 18:43:14 +01:00