aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/chips/w83781d.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/chips/w83781d.c')
-rw-r--r--drivers/i2c/chips/w83781d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/chips/w83781d.c b/drivers/i2c/chips/w83781d.c
index 8912390d3017..f47aee88e20c 100644
--- a/drivers/i2c/chips/w83781d.c
+++ b/drivers/i2c/chips/w83781d.c
@@ -192,7 +192,7 @@ DIV_TO_REG(long val, enum chips type)
192 val = SENSORS_LIMIT(val, 1, 192 val = SENSORS_LIMIT(val, 1,
193 ((type == w83781d 193 ((type == w83781d
194 || type == as99127f) ? 8 : 128)) >> 1; 194 || type == as99127f) ? 8 : 128)) >> 1;
195 for (i = 0; i < 6; i++) { 195 for (i = 0; i < 7; i++) {
196 if (val == 0) 196 if (val == 0)
197 break; 197 break;
198 val >>= 1; 198 val >>= 1;