commit | 37ad04d7a9a5c8c066e2e17d960f6563e194e53a | [log] [tgz] |
---|---|---|
author | Guenter Roeck <linux@roeck-us.net> | Mon Jun 13 06:57:37 2016 -0700 |
committer | Guenter Roeck <linux@roeck-us.net> | Sat Jul 09 08:35:40 2016 -0700 |
tree | 10c4f17f5ec0da6c78825e186a96a1afc1e39290 | |
parent | 6e5f62b9e3651e619a6baee9e11f6d9c8e4fd657 [diff] |
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: Guenter Roeck <linux@roeck-us.net>