aboutsummaryrefslogtreecommitdiffstats
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 4f1bff572c1c..bd87a42e068a 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)
264{ 264{
265 int i; 265 int i;
266 val = SENSORS_LIMIT(val, 1, 128) >> 1; 266 val = SENSORS_LIMIT(val, 1, 128) >> 1;
267 for (i = 0; i < 6; i++) { 267 for (i = 0; i < 7; i++) {
268 if (val == 0) 268 if (val == 0)
269 break; 269 break;
270 val >>= 1; 270 val >>= 1;