WSL2-Linux-Kernel/drivers/iio/imu
Carlos Song 8569beb66f iio: imu: fxos8700: fix MAGN sensor scale and unit
commit 2acd031347 upstream.

+/-1200uT is a MAGN sensor full measurement range. Magnetometer scale
is the magnetic sensitivity parameter. It is referenced as 0.1uT
according to datasheet and magnetometer channel unit is Gauss in
sysfs-bus-iio documentation. Gauss and uTesla unit conversion
relationship as follows: 0.1uT = 0.001Gs.

Set magnetometer scale and available magnetometer scale as fixed 0.001Gs.

Fixes: 84e5ddd5c4 ("iio: imu: Add support for the FXOS8700 IMU")
Signed-off-by: Carlos Song <carlos.song@nxp.com>
Link: https://lore.kernel.org/r/20230118074227.1665098-5-carlos.song@nxp.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-09 11:26:43 +01:00
..
bmi160
inv_icm42600
inv_mpu6050
st_lsm6dsx
st_lsm9ds0
Kconfig
Makefile
adis.c iio: adis: add '__adis_enable_irq()' implementation 2022-12-31 13:14:29 +01:00
adis16400.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
adis16460.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
adis16475.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
adis16480.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
adis_buffer.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
adis_trigger.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-12-31 13:14:29 +01:00
fxos8700.h
fxos8700_core.c iio: imu: fxos8700: fix MAGN sensor scale and unit 2023-02-09 11:26:43 +01:00
fxos8700_i2c.c
fxos8700_spi.c
kmx61.c