mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -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
|
|
@ -30,7 +30,7 @@ static struct proc_dir_entry *isapnp_proc_bus_dir = NULL;
|
|||
static loff_t isapnp_proc_bus_lseek(struct file *file, loff_t off, int whence)
|
||||
{
|
||||
loff_t new = -1;
|
||||
struct inode *inode = file->f_path.dentry->d_inode;
|
||||
struct inode *inode = file_inode(file);
|
||||
|
||||
mutex_lock(&inode->i_mutex);
|
||||
switch (whence) {
|
||||
|
|
@ -55,7 +55,7 @@ static loff_t isapnp_proc_bus_lseek(struct file *file, loff_t off, int whence)
|
|||
static ssize_t isapnp_proc_bus_read(struct file *file, char __user * buf,
|
||||
size_t nbytes, loff_t * ppos)
|
||||
{
|
||||
struct inode *ino = file->f_path.dentry->d_inode;
|
||||
struct inode *ino = file_inode(file);
|
||||
struct proc_dir_entry *dp = PDE(ino);
|
||||
struct pnp_dev *dev = dp->data;
|
||||
int pos = *ppos;
|
||||
|
|
|
|||
|
|
@ -244,7 +244,7 @@ static int pnpbios_proc_open(struct inode *inode, struct file *file)
|
|||
static ssize_t pnpbios_proc_write(struct file *file, const char __user *buf,
|
||||
size_t count, loff_t *pos)
|
||||
{
|
||||
void *data = PDE(file->f_path.dentry->d_inode)->data;
|
||||
void *data = PDE(file_inode(file))->data;
|
||||
struct pnp_bios_node *node;
|
||||
int boot = (long)data >> 8;
|
||||
u8 nodenum = (long)data;
|
||||
|
|
|
|||
Loading…
Reference in a new issue