summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pmbus/max20730.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2020-01-14 18:49:27 +0100
committerGuenter Roeck <linux@roeck-us.net>2020-03-09 04:35:47 +0100
commit43f33b6e59c229ca82df4f56154d50fbea3ecc80 (patch)
treea4c57d8cbe97047835d55a8e50afd809a1ba3f4f /drivers/hwmon/pmbus/max20730.c
parenthwmon: (pmbus) Add IC_DEVICE_ID and IC_DEVICE_REV command definitions (diff)
downloadlinux-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/max20730.c')
-rw-r--r--drivers/hwmon/pmbus/max20730.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwmon/pmbus/max20730.c b/drivers/hwmon/pmbus/max20730.c
index 294e2212f61e..c0bb05487e0e 100644
--- a/drivers/hwmon/pmbus/max20730.c
+++ b/drivers/hwmon/pmbus/max20730.c
@@ -85,7 +85,8 @@ static u32 max_current[][5] = {
[max20743] = { 18900, 24100, 29200, 34100 },
};
-static int max20730_read_word_data(struct i2c_client *client, int page, int reg)
+static int max20730_read_word_data(struct i2c_client *client, int page,
+ int phase, int reg)
{
const struct pmbus_driver_info *info = pmbus_get_driver_info(client);
const struct max20730_data *data = to_max20730_data(info);