android_kernel_motorola_sm6375/drivers/iio
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Colin Ian King b1de23dbec iio: tsl2583: Fix division by a zero lux_val
commit af0e1871d79cfbb91f732d2c6fa7558e45c31038 upstream.

The lux_val returned from tsl2583_get_lux can potentially be zero,
so check for this to avoid a division by zero and an overflowed
gain_trim_val.

Fixes clang scan-build warning:

drivers/iio/light/tsl2583.c:345:40: warning: Either the
condition 'lux_val<0' is redundant or there is division
by zero at line 345. [zerodivcond]

Fixes: ac4f6eee8f ("staging: iio: TAOS tsl258x: Device driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-19 10:08:31 +02:00
..
accel iio:accel:adis16201: Fix wrong axis assignment that prevents loading 2021-05-14 09:44:12 +02:00
adc iio: adc: ad7949: fix wrong ADC result due to incorrect bit mask 2021-03-24 11:26:42 +01:00
afe
amplifiers
buffer
chemical
common
dac iio: ad5504: Fix setting power-down state 2021-01-27 11:47:48 +01:00
dummy
frequency
gyro iio: gyro: mpu3050: Fix reported temperature value 2021-05-19 10:08:31 +02:00
health
humidity iio: hid-sensor-humidity: Fix alignment issue of timestamp channel 2021-03-24 11:26:42 +01:00
imu iio: adis16400: Fix an error code in adis16400_initial_setup() 2021-03-24 11:26:42 +01:00
light iio: tsl2583: Fix division by a zero lux_val 2021-05-19 10:08:31 +02:00
magnetometer iio:magnetometer:mag3110: Fix alignment and data leak issues. 2020-12-30 11:51:44 +01:00
multiplexer
orientation
potentiometer
potentiostat
pressure iio:pressure:mpl3115: Force alignment of buffer 2020-12-30 11:51:44 +01:00
proximity iio: proximity: pulsedlight: Fix rumtime PM imbalance on error 2021-05-19 10:08:30 +02:00
resolver
temperature iio: hid-sensor-temperature: Fix issues of timestamp channel 2021-03-24 11:26:43 +01:00
trigger iio: hrtimer-trigger: Mark hrtimer to expire in hard interrupt context 2020-12-30 11:51:17 +01:00
iio_core.h
iio_core_trigger.h
industrialio-buffer.c iio: buffer: Fix demux update 2020-12-30 11:51:44 +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