aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/f75375s.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/f75375s.c b/drivers/hwmon/f75375s.c
index 316c29a0b318..777a665164f9 100644
--- a/drivers/hwmon/f75375s.c
+++ b/drivers/hwmon/f75375s.c
@@ -309,7 +309,7 @@ static int set_pwm_enable_direct(struct i2c_client *client, int nr, int val)
309 struct f75375_data *data = i2c_get_clientdata(client); 309 struct f75375_data *data = i2c_get_clientdata(client);
310 u8 fanmode; 310 u8 fanmode;
311 311
312 if (val < 0 || val > 4) 312 if (val < 0 || val > 3)
313 return -EINVAL; 313 return -EINVAL;
314 314
315 fanmode = f75375_read8(client, F75375_REG_FAN_TIMER); 315 fanmode = f75375_read8(client, F75375_REG_FAN_TIMER);