aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2019-11-05 20:28:18 +0000
committerJonathan Cameron <[email protected]>2019-12-08 18:10:28 +0000
commit2e19b6c3efcf074528533c7b98a42bcb1234ebb9 (patch)
treeccfe5ba7dbe4154a86d6657ab900d04a237c531f /lib/mpi/mpi-mod.c
parent0163c1c521ff8b09cd8ca395003cc00178161d77 (diff)
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: f110f3188e56 ("iio: temperature: Add support for LTC2983") Signed-off-by: Colin Ian King <[email protected]> Acked-by: Nuno Sá <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions