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>
This commit is contained in:
Guenter Roeck
2020-01-14 09:49:27 -08:00
parent a1dd176c42
commit 43f33b6e59
19 changed files with 192 additions and 124 deletions

View File

@@ -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;