aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pmbus.h
diff options
context:
space:
mode:
authorGuenter Roeck <guenter.roeck@ericsson.com>2011-03-08 23:00:10 -0800
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-05-19 08:19:38 -0700
commit2cfa6aedb32c9c1226094ed383dc3c9b3e2ecddb (patch)
tree75f7a7d3c90d8416370300f5bec2ee45bcc2b44b /drivers/hwmon/pmbus.h
parentb4ce237b7f7d31abe9c5b0c443a64573ace4933d (diff)
downloadkernel_samsung_smdk4412-2cfa6aedb32c9c1226094ed383dc3c9b3e2ecddb.zip
kernel_samsung_smdk4412-2cfa6aedb32c9c1226094ed383dc3c9b3e2ecddb.tar.gz
kernel_samsung_smdk4412-2cfa6aedb32c9c1226094ed383dc3c9b3e2ecddb.tar.bz2
hwmon: (pmbus) Expand scope of device specific get_status function
Some devices use non-standard registers to access various functionality. This does not only affect status registers, but other registers as well. Rename local get_status function to get_byte_data to reflect this requirement. Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> Reviewed-by: Tom Grennan <tom.grennan@ericsson.com>
Diffstat (limited to 'drivers/hwmon/pmbus.h')
-rw-r--r--drivers/hwmon/pmbus.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/hwmon/pmbus.h b/drivers/hwmon/pmbus.h
index a81f7f2..50647ab 100644
--- a/drivers/hwmon/pmbus.h
+++ b/drivers/hwmon/pmbus.h
@@ -281,13 +281,11 @@ struct pmbus_driver_info {
u32 func[PMBUS_PAGES]; /* Functionality, per page */
/*
- * The get_status function maps manufacturing specific status values
- * into PMBus standard status values.
- * This function is optional and only necessary if chip specific status
- * register values have to be mapped into standard PMBus status register
- * values.
+ * The following functions map manufacturing specific register values
+ * to PMBus standard register values. Specify only if mapping is
+ * necessary.
*/
- int (*get_status)(struct i2c_client *client, int page, int reg);
+ int (*read_byte_data)(struct i2c_client *client, int page, int reg);
/*
* The identify function determines supported PMBus functionality.
* This function is only necessary if a chip driver supports multiple