OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91ab883
)
hwmon: (pmbus/max8688) Accept negative page register values
author
Guenter Roeck
<linux@roeck-us.net>
Sun, 11 Mar 2018 01:49:47 +0000
(17:49 -0800)
committer
Guenter Roeck
<linux@roeck-us.net>
Sun, 11 Mar 2018 02:59:47 +0000
(18:59 -0800)
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:
da8e48ab483e1
("hwmon: (pmbus) Always call _pmbus_read_byte in core driver")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/max8688.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/pmbus/max8688.c
b/drivers/hwmon/pmbus/max8688.c
index
dd4883a
..
e951f9b
100644
(file)
--- a/
drivers/hwmon/pmbus/max8688.c
+++ b/
drivers/hwmon/pmbus/max8688.c
@@
-45,7
+45,7
@@
static int max8688_read_word_data(struct i2c_client *client, int page, int reg)
{
int ret;
- if (page)
+ if (page
> 0
)
return -ENXIO;
switch (reg) {