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/max8688.c | |
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/max8688.c')
-rw-r--r-- | drivers/hwmon/max8688.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/max8688.c b/drivers/hwmon/max8688.c index 8ebfef2ecf26..7fb93f4e9f21 100644 --- a/drivers/hwmon/max8688.c +++ b/drivers/hwmon/max8688.c | |||
@@ -37,7 +37,7 @@ | |||
37 | #define MAX8688_STATUS_OT_FAULT (1 << 13) | 37 | #define MAX8688_STATUS_OT_FAULT (1 << 13) |
38 | #define MAX8688_STATUS_OT_WARNING (1 << 14) | 38 | #define MAX8688_STATUS_OT_WARNING (1 << 14) |
39 | 39 | ||
40 | static int max8688_get_status(struct i2c_client *client, int page, int reg) | 40 | static int max8688_read_byte_data(struct i2c_client *client, int page, int reg) |
41 | { | 41 | { |
42 | int ret = 0; | 42 | int ret = 0; |
43 | int mfg_status; | 43 | int mfg_status; |
@@ -110,7 +110,7 @@ static struct pmbus_driver_info max8688_info = { | |||
110 | .func[0] = PMBUS_HAVE_VOUT | PMBUS_HAVE_IOUT | PMBUS_HAVE_TEMP | 110 | .func[0] = PMBUS_HAVE_VOUT | PMBUS_HAVE_IOUT | PMBUS_HAVE_TEMP |
111 | | PMBUS_HAVE_STATUS_VOUT | PMBUS_HAVE_STATUS_IOUT | 111 | | PMBUS_HAVE_STATUS_VOUT | PMBUS_HAVE_STATUS_IOUT |
112 | | PMBUS_HAVE_STATUS_TEMP, | 112 | | PMBUS_HAVE_STATUS_TEMP, |
113 | .get_status = max8688_get_status, | 113 | .read_byte_data = max8688_read_byte_data, |
114 | }; | 114 | }; |
115 | 115 | ||
116 | static int max8688_probe(struct i2c_client *client, | 116 | static int max8688_probe(struct i2c_client *client, |