diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-01-23 17:07:38 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-22 23:31:31 -0500 |
commit | 496ad9aa8ef448058e36ca7a787c61f2e63f0f54 (patch) | |
tree | 8f4abde793cd7db5bb8fde6d27ebcacd0e54379a /drivers/platform | |
parent | 57eccb830f1cc93d4b506ba306d8dfa685e0c88f (diff) |
new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/sony-laptop.c | 2 | ||||
-rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 2 | ||||
-rw-r--r-- | drivers/platform/x86/toshiba_acpi.c | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index b8ad71f7863f..8853d013a716 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c | |||
@@ -3566,7 +3566,7 @@ static ssize_t sonypi_misc_read(struct file *file, char __user *buf, | |||
3566 | } | 3566 | } |
3567 | 3567 | ||
3568 | if (ret > 0) { | 3568 | if (ret > 0) { |
3569 | struct inode *inode = file->f_path.dentry->d_inode; | 3569 | struct inode *inode = file_inode(file); |
3570 | inode->i_atime = current_fs_time(inode->i_sb); | 3570 | inode->i_atime = current_fs_time(inode->i_sb); |
3571 | } | 3571 | } |
3572 | 3572 | ||
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index f946ca7cb762..05dfd569d912 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c | |||
@@ -852,7 +852,7 @@ static ssize_t dispatch_proc_write(struct file *file, | |||
852 | const char __user *userbuf, | 852 | const char __user *userbuf, |
853 | size_t count, loff_t *pos) | 853 | size_t count, loff_t *pos) |
854 | { | 854 | { |
855 | struct ibm_struct *ibm = PDE(file->f_path.dentry->d_inode)->data; | 855 | struct ibm_struct *ibm = PDE(file_inode(file))->data; |
856 | char *kernbuf; | 856 | char *kernbuf; |
857 | int ret; | 857 | int ret; |
858 | 858 | ||
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index c2727895794c..6fba80ad3bca 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c | |||
@@ -583,7 +583,7 @@ static int set_lcd_status(struct backlight_device *bd) | |||
583 | static ssize_t lcd_proc_write(struct file *file, const char __user *buf, | 583 | static ssize_t lcd_proc_write(struct file *file, const char __user *buf, |
584 | size_t count, loff_t *pos) | 584 | size_t count, loff_t *pos) |
585 | { | 585 | { |
586 | struct toshiba_acpi_dev *dev = PDE(file->f_path.dentry->d_inode)->data; | 586 | struct toshiba_acpi_dev *dev = PDE(file_inode(file))->data; |
587 | char cmd[42]; | 587 | char cmd[42]; |
588 | size_t len; | 588 | size_t len; |
589 | int value; | 589 | int value; |
@@ -650,7 +650,7 @@ static int video_proc_open(struct inode *inode, struct file *file) | |||
650 | static ssize_t video_proc_write(struct file *file, const char __user *buf, | 650 | static ssize_t video_proc_write(struct file *file, const char __user *buf, |
651 | size_t count, loff_t *pos) | 651 | size_t count, loff_t *pos) |
652 | { | 652 | { |
653 | struct toshiba_acpi_dev *dev = PDE(file->f_path.dentry->d_inode)->data; | 653 | struct toshiba_acpi_dev *dev = PDE(file_inode(file))->data; |
654 | char *cmd, *buffer; | 654 | char *cmd, *buffer; |
655 | int ret; | 655 | int ret; |
656 | int value; | 656 | int value; |
@@ -750,7 +750,7 @@ static int fan_proc_open(struct inode *inode, struct file *file) | |||
750 | static ssize_t fan_proc_write(struct file *file, const char __user *buf, | 750 | static ssize_t fan_proc_write(struct file *file, const char __user *buf, |
751 | size_t count, loff_t *pos) | 751 | size_t count, loff_t *pos) |
752 | { | 752 | { |
753 | struct toshiba_acpi_dev *dev = PDE(file->f_path.dentry->d_inode)->data; | 753 | struct toshiba_acpi_dev *dev = PDE(file_inode(file))->data; |
754 | char cmd[42]; | 754 | char cmd[42]; |
755 | size_t len; | 755 | size_t len; |
756 | int value; | 756 | int value; |
@@ -822,7 +822,7 @@ static int keys_proc_open(struct inode *inode, struct file *file) | |||
822 | static ssize_t keys_proc_write(struct file *file, const char __user *buf, | 822 | static ssize_t keys_proc_write(struct file *file, const char __user *buf, |
823 | size_t count, loff_t *pos) | 823 | size_t count, loff_t *pos) |
824 | { | 824 | { |
825 | struct toshiba_acpi_dev *dev = PDE(file->f_path.dentry->d_inode)->data; | 825 | struct toshiba_acpi_dev *dev = PDE(file_inode(file))->data; |
826 | char cmd[42]; | 826 | char cmd[42]; |
827 | size_t len; | 827 | size_t len; |
828 | int value; | 828 | int value; |