diff options
Diffstat (limited to 'drivers/i2c/chips')
-rw-r--r-- | drivers/i2c/chips/ds1682.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/chips/ds1682.c b/drivers/i2c/chips/ds1682.c index 5879f0f25495..9e94542c18a2 100644 --- a/drivers/i2c/chips/ds1682.c +++ b/drivers/i2c/chips/ds1682.c | |||
@@ -75,7 +75,8 @@ static ssize_t ds1682_show(struct device *dev, struct device_attribute *attr, | |||
75 | /* Special case: the 32 bit regs are time values with 1/4s | 75 | /* Special case: the 32 bit regs are time values with 1/4s |
76 | * resolution, scale them up to milliseconds */ | 76 | * resolution, scale them up to milliseconds */ |
77 | if (sattr->nr == 4) | 77 | if (sattr->nr == 4) |
78 | return sprintf(buf, "%llu\n", ((u64) le32_to_cpu(val)) * 250); | 78 | return sprintf(buf, "%llu\n", |
79 | ((unsigned long long)le32_to_cpu(val)) * 250); | ||
79 | 80 | ||
80 | /* Format the output string and return # of bytes */ | 81 | /* Format the output string and return # of bytes */ |
81 | return sprintf(buf, "%li\n", (long)le32_to_cpu(val)); | 82 | return sprintf(buf, "%li\n", (long)le32_to_cpu(val)); |