android_kernel_samsung_sm8650/drivers/iio/imu
Carlos Song 4092267ad6 iio: imu: fxos8700: fix MAGN sensor scale and unit
commit 2acd031347f645871959a799238a7caf6803aa18 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:28:19 +01:00
..
bmi160 iio: imu: bmi160: Move exported symbols to IIO_BMI160 namespace 2022-06-21 21:30:31 +01:00
bno055 iio: imu: bno055: uninitialized variable bug in bno055_trigger_handler() 2022-11-01 08:48:13 +00:00
inv_icm42600 IIO new device support, features and minor fixes for 5.20 2022-07-14 15:04:49 +02:00
inv_mpu6050 Char/Misc and other driver changes for 6.1-rc1 2022-10-08 08:56:37 -07:00
st_lsm6dsx iio: imu: st_lsm6dsx: add support to LSM6DSTX 2022-09-21 18:42:54 +01:00
st_lsm9ds0 iio:st-sensors: Move exports into IIO_ST_SENSORS namespace 2022-02-18 11:36:54 +00:00
adis16400.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-02-18 11:42:26 +00:00
adis16460.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-02-18 11:42:26 +00:00
adis16475.c iio: imu: adis16475: Benefit from devm_clk_get_enabled() to simplify 2022-08-15 22:30:03 +01:00
adis16480.c iio: imu: adis16480: Improve getting the optional clocks 2022-04-28 19:22:56 +01:00
adis_buffer.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-02-18 11:42:26 +00:00
adis_trigger.c iio:imu:adis: Move exports into IIO_ADISLIB namespace 2022-02-18 11:42:26 +00:00
adis.c iio: adis: add '__adis_enable_irq()' implementation 2022-12-31 13:32:41 +01:00
fxos8700_core.c iio: imu: fxos8700: fix MAGN sensor scale and unit 2023-02-09 11:28:19 +01:00
fxos8700_i2c.c iio: imu: fxos8700: Drop unneeded explicit castings 2021-03-25 19:13:50 +00:00
fxos8700_spi.c iio: imu: fxos8700: Drop unneeded explicit castings 2021-03-25 19:13:50 +00:00
fxos8700.h iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
Kconfig iio: imu: add Bosch Sensortec BNO055 core driver 2022-09-21 18:42:56 +01:00
kmx61.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
Makefile iio: imu: add Bosch Sensortec BNO055 core driver 2022-09-21 18:42:56 +01:00