android_kernel_samsung_a7y1.../drivers/iio
Alexandru Ardelean 73884fe92a iio: imu: adis16480: assign bias value only if operation succeeded
commit 9b742763d9d4195e823ae6ece760c9ed0500c1dc upstream.

This was found only after the whole thing with the inline functions, but
the compiler actually found something. The value of the `bias` (in
adis16480_get_calibbias()) should only be set if the read operation was
successful.

No actual known problem occurs as users of this function all
ultimately check the return value.  Hence probably not stable material.

Fixes: 2f3abe6cbb6c9 ("iio:imu: Add support for the ADIS16480 and similar IMUs")
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 13:37:00 +02:00
..
accel iio: fix center temperature of bmc150-accel-core 2020-04-07 09:27:33 +02:00
adc iio: adc: max1027: Reset the device at probe time 2020-04-07 13:20:44 +02:00
amplifiers A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
buffer A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
chemical A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
common iio: common: ssp_sensors: Initialize calculated_time in ssp_common_process_data 2020-04-06 18:19:39 +02:00
dac iio: dac: mcp4922: fix error handling in mcp4922_write_raw 2020-04-07 12:26:37 +02:00
frequency A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gyro iio/gyro/bmg160: Use millidegrees for temperature scale 2020-04-06 15:49:17 +02:00
humidity iio: humidity: hdc100x: fix IIO_HUMIDITYRELATIVE channel reporting 2020-04-07 13:06:33 +02:00
imu iio: imu: adis16480: assign bias value only if operation succeeded 2020-04-07 13:37:00 +02:00
light iio: light: bh1750: Resolve compiler warning and make code more readable 2020-04-07 13:20:03 +02:00
magnetometer A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
orientation A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
potentiometer A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pressure A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
proximity A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
temperature A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trigger A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
iio_core_trigger.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
iio_core.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
industrialio-buffer.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
industrialio-core.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
industrialio-event.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
industrialio-trigger.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
industrialio-triggered-event.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
inkern.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30