Home Home > GIT Browse > openSUSE-15.0
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-10 16:07:11 +0200
committerTakashi Iwai <tiwai@suse.de>2018-07-10 16:07:21 +0200
commit09c2f1ac5322025b2e2ef377a9cc9575e5b7a48f (patch)
tree513bc6839f796cbf9301298abfa1d04319bc04e5
parent79590b7f6a188d1c05106f03c71d72cbe494e2cf (diff)
hwmon: (pmbus/max8688) Accept negative page register values
(bsc#1051510). suse-commit: 793c8062de04fd146d49c4de8131f2296a20dbf8
-rw-r--r--drivers/hwmon/pmbus/max8688.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pmbus/max8688.c b/drivers/hwmon/pmbus/max8688.c
index dd4883a19045..e951f9b87abb 100644
--- 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) {