Skip to content

Commit

Permalink
hwmon: (tmp401) Simplification and cleanup
Browse files Browse the repository at this point in the history
Use two-dimensional array pointing to registers
Merge temperature and limit access functions into a single function
Return error codes from I2C reads
Use DIV_ROUND_CLOSEST for rounding operations and improve rounding

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
Guenter Roeck committed Apr 21, 2013
1 parent b4e665c commit 14f2a66
Showing 1 changed file with 137 additions and 234 deletions.
Loading

0 comments on commit 14f2a66

Please sign in to comment.