linux_dsm_epyc7002/drivers/iio/temperature
Colin Ian King 2e19b6c3ef iio: temperature: ltc2983: fix u32 read into a unsigned long long
Currently the read of temp using of_property_read_u32_index is reading
a u32 value into a unsigned long long.  This relies on machine endianness
to work correctly, so fix this by reading a u32 value and setting temp
to this value.

Addresses-Coverity: ("Reliance on integer endianness")
Fixes: f110f3188e ("iio: temperature: Add support for LTC2983")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2019-12-08 18:10:28 +00:00
..
hid-sensor-temperature.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 309 2019-06-05 17:37:04 +02:00
Kconfig iio: temperature: Add support for LTC2983 2019-10-22 11:34:19 +01:00
ltc2983.c iio: temperature: ltc2983: fix u32 read into a unsigned long long 2019-12-08 18:10:28 +00:00
Makefile iio: temperature: Add support for LTC2983 2019-10-22 11:34:19 +01:00
max31856.c iio: max31856: add missing of_node and parent references to iio_dev 2019-09-15 13:26:06 +01:00
maxim_thermocouple.c iio: temp: maxim thermocouple: Drop unneeded semi colon. 2019-10-18 20:04:26 +01:00
mlx90614.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
mlx90632.c iio: temperature: mlx90632 Relax the compatibility check 2019-05-27 10:52:30 +01:00
tmp006.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
tmp007.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
tsys01.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
tsys02d.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00