aboutsummaryrefslogtreecommitdiff
path: root/drivers/i2c/chips/w83627hf.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/chips/w83627hf.c')
-rw-r--r--drivers/i2c/chips/w83627hf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/chips/w83627hf.c b/drivers/i2c/chips/w83627hf.c
index 4f1bff572c1..bd87a42e068 100644
--- a/drivers/i2c/chips/w83627hf.c
+++ b/drivers/i2c/chips/w83627hf.c
@@ -264,7 +264,7 @@ static inline u8 DIV_TO_REG(long val)
{
int i;
val = SENSORS_LIMIT(val, 1, 128) >> 1;
- for (i = 0; i < 6; i++) {
+ for (i = 0; i < 7; i++) {
if (val == 0)
break;
val >>= 1;