hwmon: (adm1021) Fix cache problem when writing temperature limits
authorAxel Lin <axel.lin@ingics.com>
Thu, 3 Jul 2014 14:45:45 +0000 (22:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2014 23:23:11 +0000 (16:23 -0700)
commitcdf5c38683e96518f9a14a2baa8eb7b825ca064e
tree5c2c2a0570a15b88854a4424905d6a7d81243322
parent3d4509748577892b48bd4b42013fe7917e1149aa
hwmon: (adm1021) Fix cache problem when writing temperature limits

commit c024044d4da2c9c3b32933b4235df1e409293b84 upstream.

The module test script for the adm1021 driver exposes a cache problem
when writing temperature limits. temp_min and temp_max are expected
to be stored in milli-degrees C but are stored in degrees C.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/adm1021.c