hwmon: (tmp401) Simplification and cleanup
authorGuenter Roeck <linux@roeck-us.net>
Thu, 28 Mar 2013 04:23:10 +0000 (21:23 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 21 Apr 2013 15:26:41 +0000 (08:26 -0700)
commit14f2a6654dd42d60645071de26d17d0bced63a7d
treec30b46308280e4a1b99ed72bfc0c4e0edc2140ee
parentb4e665c78023ee4e4821f8e602e3b403c49ef70f
hwmon: (tmp401) Simplification and cleanup

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>
drivers/hwmon/tmp401.c