linux-sg2042/drivers/iio/temperature
Colin Ian King 8e4fefec01 iio: temperature: max31856: fix uninitialized error return
Currently if mask is neither CHAN_INFO_RAW or CHAN_INFO_SCALE then
then an uninitialized error return 'ret' is returned. Fix this by
adding a default case that ensures -EINVAL is returned for this
specific case.

Addresses-Coverity: ("Uninitialized scalar variable")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2019-04-14 13:50:09 +01:00
..
Kconfig iio:temperature: Add MAX31856 thermocouple support 2019-04-04 20:21:05 +01:00
Makefile iio:temperature: Add MAX31856 thermocouple support 2019-04-04 20:21:05 +01:00
hid-sensor-temperature.c iio/hid-sensors: Fix IIO_CHAN_INFO_RAW returning wrong values for signed numbers 2018-11-16 11:42:12 +00:00
max31856.c iio: temperature: max31856: fix uninitialized error return 2019-04-14 13:50:09 +01:00
maxim_thermocouple.c Revert "iio: temperature: maxim_thermocouple: add MAX31856 part" 2018-09-02 10:13:06 +01:00
mlx90614.c i2c: remove i2c_lock_adapter and use i2c_lock_bus directly 2018-07-13 00:09:37 +02:00
mlx90632.c regmap: split up regmap_config.use_single_rw 2018-09-07 13:03:55 +01:00
tmp006.c iio:temperature: drop assignment of iio_info.driver_module 2017-08-22 22:14:52 +01:00
tmp007.c iio:temperature: drop assignment of iio_info.driver_module 2017-08-22 22:14:52 +01:00
tsys01.c iio:temperature: drop assignment of iio_info.driver_module 2017-08-22 22:14:52 +01:00
tsys02d.c iio:temperature: drop assignment of iio_info.driver_module 2017-08-22 22:14:52 +01:00