commit | 1035a9e3e9c76b64a860a774f5b867d28d34acc2 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Wed Jul 02 08:29:55 2014 +0800 |
committer | Guenter Roeck <linux@roeck-us.net> | Thu Jul 03 09:45:17 2014 -0700 |
tree | aa2be34ac6b4bdf39f41dadb4bba97848624dfe9 | |
parent | df86754b746e9a0ff6f863f690b1c01d408e3cdc [diff] |
hwmon: (adm1029) Ensure the fan_div cache is updated in set_fan_div Writing to fanX_div does not clear the cache. As a result, reading from fanX_div may return the old value for up to two seconds after writing a new value. This patch ensures the fan_div cache is updated in set_fan_div(). Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Axel Lin <axel.lin@ingics.com> Cc: stable@vger.kernel.org Signed-off-by: Guenter Roeck <linux@roeck-us.net>