Commit 37ad04d7 authored by Guenter Roeck's avatar Guenter Roeck

hwmon: (lm90) Simplify read functions

Return both error code and register value as return code from
read functions, and always check for errors.

This reduces code size on x86_64 by more than 1k while at
the same time improving error resiliency.
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 6e5f62b9
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment