linux-stable/drivers/iio
Guido Günther bc80573ea2 iio: light: vcnl4000: Fix scale for vcnl4040
According to the data sheet the ambient sensor's scale is 0.12 lux/step
(not 0.024 lux/step as used by vcnl4200) when the integration time is
80ms. The integration time is currently hardcoded in the driver to that
value.

See p. 8 in https://www.vishay.com/docs/84307/designingvcnl4040.pdf

Fixes: 5a441aade5 ("iio: light: vcnl4000 add support for the VCNL4040 proximity and light sensor")
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-13 12:08:40 +01:00
..
accel First set of fixes for IIO in the 5.5 cycle. 2019-12-09 09:27:52 +01:00
adc iio: adc: ad7124: Fix DT channel configuration 2020-01-13 12:08:14 +01:00
afe
amplifiers
buffer
chemical iio: chemical: pms7003: fix unmet triggered buffer dependency 2020-01-13 12:08:32 +01:00
common mfd / platform / iio: cros_ec: Register sensor through sensorhub 2019-11-21 11:23:14 +01:00
dac iio: dac: ad5446: Add support for new AD5600 DAC 2019-11-10 15:14:06 +00:00
dummy
frequency
gyro iio: gyro: adis16136: check ret val for non-zero vs less-than-zero 2019-11-03 10:14:44 +00:00
health
humidity iio: humidity: hdc100x: fix IIO_HUMIDITYRELATIVE channel reporting 2019-12-08 18:10:29 +00:00
imu iio: imu: st_lsm6dsx: Fix selection of ST_LSM6DS3_ID 2020-01-13 12:08:28 +01:00
light iio: light: vcnl4000: Fix scale for vcnl4040 2020-01-13 12:08:40 +01:00
magnetometer
multiplexer
orientation
potentiometer
potentiostat
pressure iio: cros_ec_baro: set info_mask_shared_by_all_available field 2019-11-10 16:00:33 +00:00
proximity Merge 5.4-rc7 into staging-next 2019-11-11 06:23:37 +01:00
resolver
temperature iio: temperature: ltc2983: fix u32 read into a unsigned long long 2019-12-08 18:10:28 +00:00
trigger
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-13 12:08:37 +01:00
industrialio-configfs.c
industrialio-core.c compat_ioctl: remove most of fs/compat_ioctl.c 2019-12-01 13:46:15 -08:00
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c
Kconfig
Makefile