diff options
Diffstat (limited to 'drivers/hwmon/pmbus/max8688.c')
-rw-r--r-- | drivers/hwmon/pmbus/max8688.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/hwmon/pmbus/max8688.c b/drivers/hwmon/pmbus/max8688.c index c3e72f1a3cfb..e2b74bb399ba 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) | |||
45 | int ret; | 45 | int ret; |
46 | 46 | ||
47 | if (page) | 47 | if (page) |
48 | return -EINVAL; | 48 | return -ENXIO; |
49 | 49 | ||
50 | switch (reg) { | 50 | switch (reg) { |
51 | case PMBUS_VIRT_READ_VOUT_MAX: | 51 | case PMBUS_VIRT_READ_VOUT_MAX: |
@@ -101,8 +101,8 @@ static int max8688_read_byte_data(struct i2c_client *client, int page, int reg) | |||
101 | int ret = 0; | 101 | int ret = 0; |
102 | int mfg_status; | 102 | int mfg_status; |
103 | 103 | ||
104 | if (page) | 104 | if (page > 0) |
105 | return -EINVAL; | 105 | return -ENXIO; |
106 | 106 | ||
107 | switch (reg) { | 107 | switch (reg) { |
108 | case PMBUS_STATUS_VOUT: | 108 | case PMBUS_STATUS_VOUT: |
@@ -182,7 +182,8 @@ static int max8688_probe(struct i2c_client *client, | |||
182 | 182 | ||
183 | static int max8688_remove(struct i2c_client *client) | 183 | static int max8688_remove(struct i2c_client *client) |
184 | { | 184 | { |
185 | return pmbus_do_remove(client); | 185 | pmbus_do_remove(client); |
186 | return 0; | ||
186 | } | 187 | } |
187 | 188 | ||
188 | static const struct i2c_device_id max8688_id[] = { | 189 | static const struct i2c_device_id max8688_id[] = { |