]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (pmbus) Add function to clear sensor cache
authorGuenter Roeck <linux@roeck-us.net>
Sat, 26 Jan 2013 23:15:37 +0000 (15:15 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 6 Feb 2013 17:58:04 +0000 (09:58 -0800)
commit83c28409d9f47d3baff086e1c296fb2ff677c54e
treed96326369050cf4e63388a07125bd0a9884d3846
parent7e6b1b4748edfe8da9888407218d4d3cfdb7376f
hwmon: (pmbus) Add function to clear sensor cache

For PMBus chips, modifying one limit register may affect other limits.
Since limits are all cached in the PMBus core driver, related changes
are not reflected in reported limits.

Introduce function to clear the attribute cache. After calling this function,
the core pmbus driver re-reads all cached values.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus.h
drivers/hwmon/pmbus/pmbus_core.c