Skip to content

Commit

Permalink
[PATCH] struct path: convert i2c-drivers
Browse files Browse the repository at this point in the history
Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Josef Sipek authored and Linus Torvalds committed Dec 8, 2006
1 parent b39424e commit cba0a12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/i2c/i2c-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static ssize_t i2cdev_read (struct file *file, char __user *buf, size_t count,
return -ENOMEM;

pr_debug("i2c-dev: i2c-%d reading %zd bytes.\n",
iminor(file->f_dentry->d_inode), count);
iminor(file->f_path.dentry->d_inode), count);

ret = i2c_master_recv(client,tmp,count);
if (ret >= 0)
Expand Down Expand Up @@ -147,7 +147,7 @@ static ssize_t i2cdev_write (struct file *file, const char __user *buf, size_t c
}

pr_debug("i2c-dev: i2c-%d writing %zd bytes.\n",
iminor(file->f_dentry->d_inode), count);
iminor(file->f_path.dentry->d_inode), count);

ret = i2c_master_send(client,tmp,count);
kfree(tmp);
Expand Down

0 comments on commit cba0a12

Please sign in to comment.