hwmon: (ds1621) Fix temperature rounding operations
authorGuenter Roeck <linux@roeck-us.net>
Thu, 27 Jun 2013 17:07:19 +0000 (10:07 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 28 Jun 2013 13:43:55 +0000 (06:43 -0700)
commita50d9a4d9ad3c71341788099d733e4151b8a511b
treeb443b672ccc6a1bb6fc50dfdff3f5c5d3cf087ae
parent41fa9a944fce1d7efd5ee3d50ac85b92f42dcc3d
hwmon: (ds1621) Fix temperature rounding operations

Commit "hwmon: (ds1621) Add ds1721 chip support" broke rounding
for chips or configurations with less than 12 bit resolution.

Tested-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ds1621.c