diff options
author | Guenter Roeck <linux@roeck-us.net> | 2020-01-14 18:49:27 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2020-03-09 04:35:47 +0100 |
commit | 43f33b6e59c229ca82df4f56154d50fbea3ecc80 (patch) | |
tree | a4c57d8cbe97047835d55a8e50afd809a1ba3f4f /drivers/hwmon/pmbus/isl68137.c | |
parent | hwmon: (pmbus) Add IC_DEVICE_ID and IC_DEVICE_REV command definitions (diff) | |
download | linux-43f33b6e59c229ca82df4f56154d50fbea3ecc80.tar.xz linux-43f33b6e59c229ca82df4f56154d50fbea3ecc80.zip |
hwmon: (pmbus) Add 'phase' parameter where needed for multi-phase support
In preparation for multi-phase support, add 'phase' parameter to read_word
and set_page functions. Actual multi-phase support will be added in
a subsequent patch.
Cc: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/pmbus/isl68137.c')
-rw-r--r-- | drivers/hwmon/pmbus/isl68137.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwmon/pmbus/isl68137.c b/drivers/hwmon/pmbus/isl68137.c index 515596c92fe1..a95835a96014 100644 --- a/drivers/hwmon/pmbus/isl68137.c +++ b/drivers/hwmon/pmbus/isl68137.c @@ -49,7 +49,8 @@ static ssize_t isl68137_avs_enable_store_page(struct i2c_client *client, * enabling AVS control is the workaround. */ if (op_val == ISL68137_VOUT_AVS) { - rc = pmbus_read_word_data(client, page, PMBUS_VOUT_COMMAND); + rc = pmbus_read_word_data(client, page, 0xff, + PMBUS_VOUT_COMMAND); if (rc < 0) return rc; |