diff options
author | Guenter Roeck <linux@roeck-us.net> | 2020-01-14 09:49:27 -0800 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2020-03-08 20:35:47 -0700 |
commit | 43f33b6e59c229ca82df4f56154d50fbea3ecc80 (patch) | |
tree | a4c57d8cbe97047835d55a8e50afd809a1ba3f4f /drivers/hwmon/pmbus/pmbus.c | |
parent | a1dd176c4295f533326185c5228956e02b126939 (diff) | |
download | linux-stable-43f33b6e59c229ca82df4f56154d50fbea3ecc80.tar.gz linux-stable-43f33b6e59c229ca82df4f56154d50fbea3ecc80.tar.bz2 linux-stable-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/pmbus.c')
-rw-r--r-- | drivers/hwmon/pmbus/pmbus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/pmbus/pmbus.c b/drivers/hwmon/pmbus/pmbus.c index 51e8312b6c2d..6d384e8ee1db 100644 --- a/drivers/hwmon/pmbus/pmbus.c +++ b/drivers/hwmon/pmbus/pmbus.c @@ -102,10 +102,10 @@ static int pmbus_identify(struct i2c_client *client, int page; for (page = 1; page < PMBUS_PAGES; page++) { - if (pmbus_set_page(client, page) < 0) + if (pmbus_set_page(client, page, 0xff) < 0) break; } - pmbus_set_page(client, 0); + pmbus_set_page(client, 0, 0xff); info->pages = page; } else { info->pages = 1; |