aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pmbus/pmbus.h
diff options
context:
space:
mode:
authorGuenter Roeck <guenter.roeck@ericsson.com>2011-07-08 13:41:24 -0400
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-07-28 19:55:13 -0400
commit46243f3ab44ad0d2e9ca62e6485ca433659f3881 (patch)
tree93b542f63ff4de15f1ddf25c842ff326287a15f7 /drivers/hwmon/pmbus/pmbus.h
parent2bd05bf4d2a5807dcc1c52788b842827e5ef0ee9 (diff)
hwmon: (pmbus) Support reading and writing of word registers in device specific code
Some PMBus devices use non-standard registers for some of the sensors and/or limits. To support such devices, add code to support reading and writing of word size registers in device specific code. Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
Diffstat (limited to 'drivers/hwmon/pmbus/pmbus.h')
-rw-r--r--drivers/hwmon/pmbus/pmbus.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/hwmon/pmbus/pmbus.h b/drivers/hwmon/pmbus/pmbus.h
index cc5b6a23260b..d631caeda106 100644
--- a/drivers/hwmon/pmbus/pmbus.h
+++ b/drivers/hwmon/pmbus/pmbus.h
@@ -286,6 +286,9 @@ struct pmbus_driver_info {
286 * necessary. 286 * necessary.
287 */ 287 */
288 int (*read_byte_data)(struct i2c_client *client, int page, int reg); 288 int (*read_byte_data)(struct i2c_client *client, int page, int reg);
289 int (*read_word_data)(struct i2c_client *client, int page, int reg);
290 int (*write_word_data)(struct i2c_client *client, int page, int reg,
291 u16 word);
289 /* 292 /*
290 * The identify function determines supported PMBus functionality. 293 * The identify function determines supported PMBus functionality.
291 * This function is only necessary if a chip driver supports multiple 294 * This function is only necessary if a chip driver supports multiple
@@ -299,6 +302,7 @@ struct pmbus_driver_info {
299 302
300int pmbus_set_page(struct i2c_client *client, u8 page); 303int pmbus_set_page(struct i2c_client *client, u8 page);
301int pmbus_read_word_data(struct i2c_client *client, u8 page, u8 reg); 304int pmbus_read_word_data(struct i2c_client *client, u8 page, u8 reg);
305int pmbus_write_word_data(struct i2c_client *client, u8 page, u8 reg, u16 word);
302int pmbus_read_byte_data(struct i2c_client *client, u8 page, u8 reg); 306int pmbus_read_byte_data(struct i2c_client *client, u8 page, u8 reg);
303void pmbus_clear_faults(struct i2c_client *client); 307void pmbus_clear_faults(struct i2c_client *client);
304bool pmbus_check_byte_register(struct i2c_client *client, int page, int reg); 308bool pmbus_check_byte_register(struct i2c_client *client, int page, int reg);