aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorJosef Sipek <jsipek@fsl.cs.sunysb.edu>2006-12-08 05:37:08 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:45 -0500
commitcba0a128434f1fae6f90ba9f1fedf18be7abcf48 (patch)
tree31bcb355a35258d308cb341029027e096ddc8cbb /drivers/i2c
parentb39424e274a17c9c3233c9911dd328b10370de8f (diff)
[PATCH] struct path: convert i2c-drivers
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/i2c-dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c
index 94a4e9a3013c..2e22a2ffa606 100644
--- a/drivers/i2c/i2c-dev.c
+++ b/drivers/i2c/i2c-dev.c
@@ -119,7 +119,7 @@ static ssize_t i2cdev_read (struct file *file, char __user *buf, size_t count,
119 return -ENOMEM; 119 return -ENOMEM;
120 120
121 pr_debug("i2c-dev: i2c-%d reading %zd bytes.\n", 121 pr_debug("i2c-dev: i2c-%d reading %zd bytes.\n",
122 iminor(file->f_dentry->d_inode), count); 122 iminor(file->f_path.dentry->d_inode), count);
123 123
124 ret = i2c_master_recv(client,tmp,count); 124 ret = i2c_master_recv(client,tmp,count);
125 if (ret >= 0) 125 if (ret >= 0)
@@ -147,7 +147,7 @@ static ssize_t i2cdev_write (struct file *file, const char __user *buf, size_t c
147 } 147 }
148 148
149 pr_debug("i2c-dev: i2c-%d writing %zd bytes.\n", 149 pr_debug("i2c-dev: i2c-%d writing %zd bytes.\n",
150 iminor(file->f_dentry->d_inode), count); 150 iminor(file->f_path.dentry->d_inode), count);
151 151
152 ret = i2c_master_send(client,tmp,count); 152 ret = i2c_master_send(client,tmp,count);
153 kfree(tmp); 153 kfree(tmp);