android_kernel_motorola_sm6375/drivers/iio
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Matteo Martelli c8294c80b7 iio: fix scale application in iio_convert_raw_to_processed_unlocked
commit 8a3dcc970dc57b358c8db2702447bf0af4e0d83a upstream.

When the scale_type is IIO_VAL_INT_PLUS_MICRO or IIO_VAL_INT_PLUS_NANO
the scale passed as argument is only applied to the fractional part of
the value. Fix it by also multiplying the integer part by the scale
provided.

Fixes: 48e44ce0f8 ("iio:inkern: Add function to read the processed value")
Signed-off-by: Matteo Martelli <matteomartelli3@gmail.com>
Link: https://patch.msgid.link/20240730-iio-fix-scale-v1-1-6246638c8daa@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-12 11:03:55 +02:00
..
accel
adc iio: adc: ad7266: Fix variable checking bug 2024-07-05 09:08:29 +02:00
addac iio: addac: stx104: Fix race condition when converting analog-to-digital 2023-08-30 16:27:12 +02:00
afe
amplifiers
buffer iio: buffer-dmaengine: fix releasing dma channel on error 2024-09-12 11:03:55 +02:00
chemical iio: chemical: bme680: Fix sensor data read operation 2024-07-05 09:08:29 +02:00
common iio: common: ms_sensors: ms_sensors_i2c: fix humidity conversion time table 2024-01-08 11:29:46 +01:00
dac iio: dac: ad5592r: fix temperature channel scaling value 2024-07-05 09:08:26 +02:00
dummy
frequency
gyro
health
humidity
imu iio: imu: inv_mpu6050: fix an error code problem in inv_mpu6050_read_raw 2024-01-08 11:29:45 +01:00
light
magnetometer iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC 2024-02-23 08:25:11 +01:00
multiplexer
orientation
potentiometer
potentiostat
pressure iio: pressure: dps310: support negative temperature values 2024-06-16 13:28:42 +02:00
proximity
resolver
temperature
trigger
iio_core.h
iio_core_trigger.h
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c iio: fix scale application in iio_convert_raw_to_processed_unlocked 2024-09-12 11:03:55 +02:00
Kconfig
Makefile