linux/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
max31856.c iio: temperature: max31856: fix uninitialized error return 2019-04-14 13:50:09 +01:00
maxim_thermocouple.c
mlx90614.c
mlx90632.c
tmp006.c
tmp007.c
tsys01.c
tsys02d.c