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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user