commit | 773257dda4e3e96f2e1be015fdcd0a0d49afc92b | [log] [tgz] |
---|---|---|
author | Benjamin Björnsson <benjamin.bjornsson@gmail.com> | Sat Nov 18 12:33:35 2023 +0100 |
committer | Henrik Brix Andersen <henrik@brixandersen.dk> | Mon Dec 04 14:34:42 2023 +0100 |
tree | d0de167e36860e5a51d5b8b973658f784e4b0b50 | |
parent | ef871058aafe93b6a1bb1ac426916c8d134d263b [diff] |
sensor: adltc2990: separate function return values This commit reworks the adltc2990_fetch_property_value function to pass its result through a variable pointer instead of direct return. This is done in part to separate the errno value being return in the default case of the switch from the result of the function, but also to make it easier the fix a Coverity issue regarding the unhandled return values of i2c reads. Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>