mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
new helper: file_inode(file)
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
57eccb830f
commit
496ad9aa8e
306 changed files with 696 additions and 717 deletions
|
|
@ -148,7 +148,7 @@ static ssize_t i2cdev_read(struct file *file, char __user *buf, size_t count,
|
|||
return -ENOMEM;
|
||||
|
||||
pr_debug("i2c-dev: i2c-%d reading %zu bytes.\n",
|
||||
iminor(file->f_path.dentry->d_inode), count);
|
||||
iminor(file_inode(file)), count);
|
||||
|
||||
ret = i2c_master_recv(client, tmp, count);
|
||||
if (ret >= 0)
|
||||
|
|
@ -172,7 +172,7 @@ static ssize_t i2cdev_write(struct file *file, const char __user *buf,
|
|||
return PTR_ERR(tmp);
|
||||
|
||||
pr_debug("i2c-dev: i2c-%d writing %zu bytes.\n",
|
||||
iminor(file->f_path.dentry->d_inode), count);
|
||||
iminor(file_inode(file)), count);
|
||||
|
||||
ret = i2c_master_send(client, tmp, count);
|
||||
kfree(tmp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue