Skip to content
Commit 2e19b6c3 authored by Colin Ian King's avatar Colin Ian King Committed by Jonathan Cameron
Browse files

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: f110f318 ("iio: temperature: Add support for LTC2983")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarNuno Sá <nuno.sa@analog.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 0163c1c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment