android_kernel_motorola_sm6375/drivers/iio
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Maxime Roussin-Bélanger 47e4d791d5 iio: si1133: read 24-bit signed integer for measurement
commit 328b50e9a0ad1fe8accdf8c19923deebab5e0c01 upstream.

The chip is configured in 24 bit mode. The values read from
it must always be treated as is. This fixes the issue by
replacing the previous 16 bits value by a 24 bits buffer.

This changes affects the value output by previous version of
the driver, since the least significant byte was missing.
The upper half of 16 bit values previously output are now
the upper half of a 24 bit value.

Fixes: e01e7eaf37 ("iio: light: introduce si1133")

Reported-by: Simon Goyette <[email protected]>
Co-authored-by: Guillaume Champagne <[email protected]>
Signed-off-by: Maxime Roussin-Bélanger <[email protected]>
Signed-off-by: Guillaume Champagne <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2020-04-23 10:36:43 +02:00
..
accel iio: accel: adxl372: Set iio_chan BE 2020-03-25 08:25:53 +01:00
adc iio: adc: at91-sama5d2_adc: fix differential channels in triggered mode 2020-03-25 08:25:53 +01:00
afe
amplifiers
buffer
chemical iio: chemical: sps30: fix missing triggered buffer dependency 2020-03-25 08:25:53 +01:00
common chrome platform changes for v5.4 2019-09-19 14:14:28 -07:00
dac iio: dac: ad5446: Add support for new AD5600 DAC 2019-12-31 16:45:19 +01:00
dummy
frequency
gyro iio: st_gyro: Correct data for LSM9DS0 gyro 2020-02-01 09:34:36 +00:00
health
humidity iio: humidity: hdc100x: fix IIO_HUMIDITYRELATIVE channel reporting 2019-12-17 19:55:42 +01:00
imu iio: imu: st_lsm6dsx: Fix selection of ST_LSM6DS3_ID 2020-01-23 08:22:33 +01:00
light iio: si1133: read 24-bit signed integer for measurement 2020-04-23 10:36:43 +02:00
magnetometer iio: magnetometer: ak8974: Fix negative raw values in sysfs 2020-03-25 08:25:53 +01:00
multiplexer
orientation
potentiometer
potentiostat
pressure iio: cros_ec_baro: set info_mask_shared_by_all_available field 2019-12-31 16:45:15 +01:00
proximity iio: srf04: fix wrong limitation in distance measuring 2019-10-12 14:31:09 +01:00
resolver
temperature iio: max31856: add missing of_node and parent references to iio_dev 2019-12-31 16:42:46 +01:00
trigger iio: trigger: stm32-timer: disable master mode when stopping 2020-03-25 08:25:53 +01:00
iio_core.h
iio_core_trigger.h
industrialio-buffer.c iio: buffer: align the size of scan bytes to size of the largest element 2020-01-23 08:22:33 +01:00
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
Kconfig
Makefile