Commit 9c8b76eb authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] i2c-dev warning fixes

drivers/i2c/i2c-dev.c: In function `i2cdev_read':
drivers/i2c/i2c-dev.c:140: warning: int format, different type arg (arg 3)
drivers/i2c/i2c-dev.c: In function `i2cdev_write':
drivers/i2c/i2c-dev.c:168: warning: int format, different type arg (arg 3)
parent 8447ac26
...@@ -137,7 +137,7 @@ static ssize_t i2cdev_read (struct file *file, char __user *buf, size_t count, ...@@ -137,7 +137,7 @@ static ssize_t i2cdev_read (struct file *file, char __user *buf, size_t count,
if (tmp==NULL) if (tmp==NULL)
return -ENOMEM; return -ENOMEM;
pr_debug("i2c-dev: i2c-%d reading %d bytes.\n", pr_debug("i2c-dev: i2c-%d reading %zd bytes.\n",
iminor(file->f_dentry->d_inode), count); iminor(file->f_dentry->d_inode), count);
ret = i2c_master_recv(client,tmp,count); ret = i2c_master_recv(client,tmp,count);
...@@ -165,7 +165,7 @@ static ssize_t i2cdev_write (struct file *file, const char __user *buf, size_t c ...@@ -165,7 +165,7 @@ static ssize_t i2cdev_write (struct file *file, const char __user *buf, size_t c
return -EFAULT; return -EFAULT;
} }
pr_debug("i2c-dev: i2c-%d writing %d bytes.\n", pr_debug("i2c-dev: i2c-%d writing %zd bytes.\n",
iminor(file->f_dentry->d_inode), count); iminor(file->f_dentry->d_inode), count);
ret = i2c_master_send(client,tmp,count); ret = i2c_master_send(client,tmp,count);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment