new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -583,7 +583,7 @@ static int set_lcd_status(struct backlight_device *bd)
|
||||
static ssize_t lcd_proc_write(struct file *file, const char __user *buf,
|
||||
size_t count, loff_t *pos)
|
||||
{
|
||||
struct toshiba_acpi_dev *dev = PDE(file->f_path.dentry->d_inode)->data;
|
||||
struct toshiba_acpi_dev *dev = PDE(file_inode(file))->data;
|
||||
char cmd[42];
|
||||
size_t len;
|
||||
int value;
|
||||
@@ -650,7 +650,7 @@ static int video_proc_open(struct inode *inode, struct file *file)
|
||||
static ssize_t video_proc_write(struct file *file, const char __user *buf,
|
||||
size_t count, loff_t *pos)
|
||||
{
|
||||
struct toshiba_acpi_dev *dev = PDE(file->f_path.dentry->d_inode)->data;
|
||||
struct toshiba_acpi_dev *dev = PDE(file_inode(file))->data;
|
||||
char *cmd, *buffer;
|
||||
int ret;
|
||||
int value;
|
||||
@@ -750,7 +750,7 @@ static int fan_proc_open(struct inode *inode, struct file *file)
|
||||
static ssize_t fan_proc_write(struct file *file, const char __user *buf,
|
||||
size_t count, loff_t *pos)
|
||||
{
|
||||
struct toshiba_acpi_dev *dev = PDE(file->f_path.dentry->d_inode)->data;
|
||||
struct toshiba_acpi_dev *dev = PDE(file_inode(file))->data;
|
||||
char cmd[42];
|
||||
size_t len;
|
||||
int value;
|
||||
@@ -822,7 +822,7 @@ static int keys_proc_open(struct inode *inode, struct file *file)
|
||||
static ssize_t keys_proc_write(struct file *file, const char __user *buf,
|
||||
size_t count, loff_t *pos)
|
||||
{
|
||||
struct toshiba_acpi_dev *dev = PDE(file->f_path.dentry->d_inode)->data;
|
||||
struct toshiba_acpi_dev *dev = PDE(file_inode(file))->data;
|
||||
char cmd[42];
|
||||
size_t len;
|
||||
int value;
|
||||
|
Reference in New Issue
Block a user