]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm90) Simplify read functions
authorGuenter Roeck <linux@roeck-us.net>
Mon, 13 Jun 2016 13:57:37 +0000 (06:57 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 9 Jul 2016 15:35:40 +0000 (08:35 -0700)
commitbd09c390938e0ae5fce52bec476930c706ed827a
tree10c4f17f5ec0da6c78825e186a96a1afc1e39290
parent505cf06a6b0769a797d8a678e9d45fc8590348df
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>
drivers/hwmon/lm90.c