linux_dsm_epyc7002/drivers/iio/light
Maxime Roussin-Bélanger 328b50e9a0 iio: si1133: read 24-bit signed integer for measurement
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 <simon.goyette@gmail.com>
Co-authored-by: Guillaume Champagne <champagne.guillaume.c@gmail.com>
Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
Signed-off-by: Guillaume Champagne <champagne.guillaume.c@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-03-08 17:28:42 +00:00
..
acpi-als.c
adjd_s311.c
adux1020.c iio: light: Add support for ADUX1020 sensor 2019-10-15 21:11:02 +01:00
al3010.c iio: light: add Dyna-Image AL3010 driver 2020-03-08 17:28:34 +00:00
al3320a.c iio: light: al3320a allow module autoload and polish 2020-03-08 17:28:35 +00:00
apds9300.c
apds9960.c iio: apds9960: Drop GPIO includes 2019-12-15 11:42:15 +00:00
bh1750.c iio: light: bh1750: Resolve compiler warning and make code more readable 2019-09-15 10:47:02 +01:00
bh1780.c
cm3232.c
cm3323.c
cm3605.c
cm32181.c
cm36651.c
cros_ec_light_prox.c cros_ec: treewide: Remove 'include/linux/mfd/cros_ec.h' 2020-01-07 17:36:46 +01:00
gp2ap002.c iio: light: Simplify the current to lux LUT 2020-03-08 17:28:41 +00:00
gp2ap020a00f.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
hid-sensor-als.c
hid-sensor-prox.c
isl29018.c
isl29028.c
isl29125.c
jsa1212.c
Kconfig iio: light: add Dyna-Image AL3010 driver 2020-03-08 17:28:34 +00:00
lm3533-als.c iio: light: remove unneeded semicolon 2019-12-29 15:20:06 +00:00
ltr501.c
lv0104cs.c
Makefile iio: light: add Dyna-Image AL3010 driver 2020-03-08 17:28:34 +00:00
max44000.c
max44009.c
noa1305.c
opt3001.c iio: light: opt3001: fix mutex unlock race 2019-10-09 19:11:29 +01:00
pa12203001.c
rpr0521.c
si1133.c iio: si1133: read 24-bit signed integer for measurement 2020-03-08 17:28:42 +00:00
si1145.c iio: si1145: Drop GPIO include 2019-12-15 11:42:15 +00:00
st_uvis25_core.c
st_uvis25_i2c.c iio: light: st_uvis25: Drop unneeded header inclusion 2019-12-29 15:20:04 +00:00
st_uvis25_spi.c
st_uvis25.h
stk3310.c
tcs3414.c iio: tcs3414: fix iio_triggered_buffer_{pre,post}enable positions 2019-09-21 16:31:38 +01:00
tcs3472.c
tsl2563.c
tsl2583.c
tsl2772.c
tsl4531.c
us5182d.c
vcnl4000.c iio: vcnl4000: Enable runtime pm for vcnl4200/4040 2020-02-14 15:06:24 +00:00
vcnl4035.c
veml6030.c iio: light: add driver for veml6030 ambient light sensor 2019-11-10 10:39:33 +00:00
veml6070.c
vl6180.c
zopt2201.c