hwmon: (ds1621) Update zbits after conversion rate change
authorRobert Coulson <rob.coulson@gmail.com>
Thu, 28 Aug 2014 17:45:43 +0000 (10:45 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 28 Aug 2014 18:18:47 +0000 (11:18 -0700)
commit39c627a084475e8a690a4a9e7601410ca173ddd2
tree8aeedeabbafa80622ecfe3e19047f4ad0f79998f
parent52addcf9d6669fa439387610bc65c92fa0980cef
hwmon: (ds1621) Update zbits after conversion rate change

After the conversion rate is changed, the zbits are not updated,
but should be, since they are used later in the set_temp function.

Fixes: a50d9a4d9ad3 ("hwmon: (ds1621) Fix temperature rounding operations")
Reported-by: Murat Ilsever <murat.ilsever@gmail.com>
Signed-off-by: Robert Coulson <rob.coulson@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ds1621.c