aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pmbus/pmbus.h
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2013-01-26 18:15:37 -0500
committerGuenter Roeck <linux@roeck-us.net>2013-02-06 12:58:04 -0500
commitce603b18f30aea1216a00673a33805d4f5a5e16b (patch)
treed96326369050cf4e63388a07125bd0a9884d3846 /drivers/hwmon/pmbus/pmbus.h
parentaebcbbfc4955929286a15a04592a2281d3e527db (diff)
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>
Diffstat (limited to 'drivers/hwmon/pmbus/pmbus.h')
-rw-r--r--drivers/hwmon/pmbus/pmbus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/pmbus/pmbus.h b/drivers/hwmon/pmbus/pmbus.h
index 164d17706486..fa9beb3eb60c 100644
--- a/drivers/hwmon/pmbus/pmbus.h
+++ b/drivers/hwmon/pmbus/pmbus.h
@@ -369,6 +369,7 @@ struct pmbus_driver_info {
369 369
370/* Function declarations */ 370/* Function declarations */
371 371
372void pmbus_clear_cache(struct i2c_client *client);
372int pmbus_set_page(struct i2c_client *client, u8 page); 373int pmbus_set_page(struct i2c_client *client, u8 page);
373int pmbus_read_word_data(struct i2c_client *client, u8 page, u8 reg); 374int pmbus_read_word_data(struct i2c_client *client, u8 page, u8 reg);
374int pmbus_write_word_data(struct i2c_client *client, u8 page, u8 reg, u16 word); 375int pmbus_write_word_data(struct i2c_client *client, u8 page, u8 reg, u16 word);