提交 a46f8cd6 编写于 作者: G Guenter Roeck

hwmon: (pmbus/max8688) Accept negative page register values

A negative page register value means that no page needs to be
selected. This is used by status register evaluations and needs
to be accepted.

Fixes: da8e48ab ("hwmon: (pmbus) Always call _pmbus_read_byte in core driver")
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
上级 91ab883e
...@@ -45,7 +45,7 @@ static int max8688_read_word_data(struct i2c_client *client, int page, int reg) ...@@ -45,7 +45,7 @@ static int max8688_read_word_data(struct i2c_client *client, int page, int reg)
{ {
int ret; int ret;
if (page) if (page > 0)
return -ENXIO; return -ENXIO;
switch (reg) { switch (reg) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册