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:21:03 +0000 (16:21 -0700)
commitabb38fcaed643833e4f4658a884f8a84fc826504
tree669a40e1e617788dc8febbd8516514b25c7ef1bf
parent53b96c8526b5c325c3b62d73e69faca2bc71ee44
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