hwmon: (adm1029) Ensure the fan_div cache is updated in set_fan_div
authorAxel Lin <[email protected]>
Wed, 2 Jul 2014 00:29:55 +0000 (08:29 +0800)
committerGuenter Roeck <[email protected]>
Thu, 3 Jul 2014 16:45:17 +0000 (09:45 -0700)
commit1035a9e3e9c76b64a860a774f5b867d28d34acc2
treeaa2be34ac6b4bdf39f41dadb4bba97848624dfe9
parentdf86754b746e9a0ff6f863f690b1c01d408e3cdc
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 <[email protected]>
Signed-off-by: Axel Lin <[email protected]>
Cc: [email protected]
Signed-off-by: Guenter Roeck <[email protected]>
drivers/hwmon/adm1029.c