Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62987
b: refs/heads/master
c: f52e0ef
h: refs/heads/master
i:
  62985: 4009cc6
  62983: 497d0a0
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jul 26, 2007
1 parent 1d355f5 commit 55ff373
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ca56b4bb24e01158cb5d87adafa4b76da1f044d
refs/heads/master: f52e0ef47b22c18ff56f6233f814b329cb6e32cc
3 changes: 2 additions & 1 deletion trunk/drivers/i2c/chips/ds1682.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ static ssize_t ds1682_show(struct device *dev, struct device_attribute *attr,
/* Special case: the 32 bit regs are time values with 1/4s
* resolution, scale them up to milliseconds */
if (sattr->nr == 4)
return sprintf(buf, "%llu\n", ((u64) le32_to_cpu(val)) * 250);
return sprintf(buf, "%llu\n",
((unsigned long long)le32_to_cpu(val)) * 250);

/* Format the output string and return # of bytes */
return sprintf(buf, "%li\n", (long)le32_to_cpu(val));
Expand Down

0 comments on commit 55ff373

Please sign in to comment.