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
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
mlx90632.c
tmp006.c
tmp007.c
tsys01.c
tsys02d.c