diff options
author | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-03-09 02:00:10 -0500 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-05-19 11:19:38 -0400 |
commit | 2cfa6aedb32c9c1226094ed383dc3c9b3e2ecddb (patch) | |
tree | 75f7a7d3c90d8416370300f5bec2ee45bcc2b44b /drivers/hwmon/pmbus.h | |
parent | b4ce237b7f7d31abe9c5b0c443a64573ace4933d (diff) |
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.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/hwmon/pmbus.h b/drivers/hwmon/pmbus.h index a81f7f228762..50647ab7235a 100644 --- a/drivers/hwmon/pmbus.h +++ b/drivers/hwmon/pmbus.h | |||
@@ -281,13 +281,11 @@ struct pmbus_driver_info { | |||
281 | 281 | ||
282 | u32 func[PMBUS_PAGES]; /* Functionality, per page */ | 282 | u32 func[PMBUS_PAGES]; /* Functionality, per page */ |
283 | /* | 283 | /* |
284 | * The get_status function maps manufacturing specific status values | 284 | * The following functions map manufacturing specific register values |
285 | * into PMBus standard status values. | 285 | * to PMBus standard register values. Specify only if mapping is |
286 | * This function is optional and only necessary if chip specific status | 286 | * necessary. |
287 | * register values have to be mapped into standard PMBus status register | ||
288 | * values. | ||
289 | */ | 287 | */ |
290 | int (*get_status)(struct i2c_client *client, int page, int reg); | 288 | int (*read_byte_data)(struct i2c_client *client, int page, int reg); |
291 | /* | 289 | /* |
292 | * The identify function determines supported PMBus functionality. | 290 | * The identify function determines supported PMBus functionality. |
293 | * This function is only necessary if a chip driver supports multiple | 291 | * This function is only necessary if a chip driver supports multiple |