Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f52e0ef47b22c18ff56f6233f814b329cb6e32cc
Commit:     f52e0ef47b22c18ff56f6233f814b329cb6e32cc
Parent:     0ca56b4bb24e01158cb5d87adafa4b76da1f044d
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Thu Jul 26 10:41:09 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Jul 26 11:35:17 2007 -0700

    i2c: ds1682 warning fix
    
    ia64:
    
    drivers/i2c/chips/ds1682.c: In function `ds1682_show':
    drivers/i2c/chips/ds1682.c:78: warning: long long unsigned int format, long 
unsigned int arg (arg 3)
    drivers/i2c/chips/ds1682.c:78: warning: long long unsigned int format, long 
unsigned int arg (arg 3)
    
    Cc: Jean Delvare <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 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 5879f0f..9e94542 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,
        /* 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));
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to