aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-05-01 20:51:54 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-05-01 20:51:54 -0400
commit20b4fb485227404329e41ad15588afad3df23050 (patch)
treef3e099f0ab3da8a93b447203e294d2bb22f6dc05 /drivers/platform
parentb9394d8a657cd3c064fa432aa0905c1b58b38fe9 (diff)
parentac3e3c5b1164397656df81b9e9ab4991184d3236 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull VFS updates from Al Viro, Misc cleanups all over the place, mainly wrt /proc interfaces (switch create_proc_entry to proc_create(), get rid of the deprecated create_proc_read_entry() in favor of using proc_create_data() and seq_file etc). 7kloc removed. * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (204 commits) don't bother with deferred freeing of fdtables proc: Move non-public stuff from linux/proc_fs.h to fs/proc/internal.h proc: Make the PROC_I() and PDE() macros internal to procfs proc: Supply a function to remove a proc entry by PDE take cgroup_open() and cpuset_open() to fs/proc/base.c ppc: Clean up scanlog ppc: Clean up rtas_flash driver somewhat hostap: proc: Use remove_proc_subtree() drm: proc: Use remove_proc_subtree() drm: proc: Use minor->index to label things, not PDE->name drm: Constify drm_proc_list[] zoran: Don't print proc_dir_entry data in debug reiserfs: Don't access the proc_dir_entry in r_open(), r_start() r_show() proc: Supply an accessor for getting the data from a PDE's parent airo: Use remove_proc_subtree() rtl8192u: Don't need to save device proc dir PDE rtl8187se: Use a dir under /proc/net/r8180/ proc: Add proc_mkdir_data() proc: Move some bits from linux/proc_fs.h to linux/{of.h,signal.h,tty.h} proc: Move PDE_NET() to fs/proc/proc_net.c ...
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/thinkpad_acpi.c4
-rw-r--r--drivers/platform/x86/toshiba_acpi.c18
2 files changed, 11 insertions, 11 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index edec135b1685..54d31c0a9840 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -844,14 +844,14 @@ static int dispatch_proc_show(struct seq_file *m, void *v)
844 844
845static int dispatch_proc_open(struct inode *inode, struct file *file) 845static int dispatch_proc_open(struct inode *inode, struct file *file)
846{ 846{
847 return single_open(file, dispatch_proc_show, PDE(inode)->data); 847 return single_open(file, dispatch_proc_show, PDE_DATA(inode));
848} 848}
849 849
850static ssize_t dispatch_proc_write(struct file *file, 850static ssize_t dispatch_proc_write(struct file *file,
851 const char __user *userbuf, 851 const char __user *userbuf,
852 size_t count, loff_t *pos) 852 size_t count, loff_t *pos)
853{ 853{
854 struct ibm_struct *ibm = PDE(file_inode(file))->data; 854 struct ibm_struct *ibm = PDE_DATA(file_inode(file));
855 char *kernbuf; 855 char *kernbuf;
856 int ret; 856 int ret;
857 857
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c
index 242abac62d8b..eb3467ea6d86 100644
--- a/drivers/platform/x86/toshiba_acpi.c
+++ b/drivers/platform/x86/toshiba_acpi.c
@@ -553,7 +553,7 @@ static int lcd_proc_show(struct seq_file *m, void *v)
553 553
554static int lcd_proc_open(struct inode *inode, struct file *file) 554static int lcd_proc_open(struct inode *inode, struct file *file)
555{ 555{
556 return single_open(file, lcd_proc_show, PDE(inode)->data); 556 return single_open(file, lcd_proc_show, PDE_DATA(inode));
557} 557}
558 558
559static int set_lcd_brightness(struct toshiba_acpi_dev *dev, int value) 559static int set_lcd_brightness(struct toshiba_acpi_dev *dev, int value)
@@ -583,7 +583,7 @@ static int set_lcd_status(struct backlight_device *bd)
583static ssize_t lcd_proc_write(struct file *file, const char __user *buf, 583static 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_inode(file))->data; 586 struct toshiba_acpi_dev *dev = PDE_DATA(file_inode(file));
587 char cmd[42]; 587 char cmd[42];
588 size_t len; 588 size_t len;
589 int value; 589 int value;
@@ -644,13 +644,13 @@ static int video_proc_show(struct seq_file *m, void *v)
644 644
645static int video_proc_open(struct inode *inode, struct file *file) 645static int video_proc_open(struct inode *inode, struct file *file)
646{ 646{
647 return single_open(file, video_proc_show, PDE(inode)->data); 647 return single_open(file, video_proc_show, PDE_DATA(inode));
648} 648}
649 649
650static ssize_t video_proc_write(struct file *file, const char __user *buf, 650static 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_inode(file))->data; 653 struct toshiba_acpi_dev *dev = PDE_DATA(file_inode(file));
654 char *cmd, *buffer; 654 char *cmd, *buffer;
655 int ret; 655 int ret;
656 int value; 656 int value;
@@ -744,13 +744,13 @@ static int fan_proc_show(struct seq_file *m, void *v)
744 744
745static int fan_proc_open(struct inode *inode, struct file *file) 745static int fan_proc_open(struct inode *inode, struct file *file)
746{ 746{
747 return single_open(file, fan_proc_show, PDE(inode)->data); 747 return single_open(file, fan_proc_show, PDE_DATA(inode));
748} 748}
749 749
750static ssize_t fan_proc_write(struct file *file, const char __user *buf, 750static 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_inode(file))->data; 753 struct toshiba_acpi_dev *dev = PDE_DATA(file_inode(file));
754 char cmd[42]; 754 char cmd[42];
755 size_t len; 755 size_t len;
756 int value; 756 int value;
@@ -816,13 +816,13 @@ static int keys_proc_show(struct seq_file *m, void *v)
816 816
817static int keys_proc_open(struct inode *inode, struct file *file) 817static int keys_proc_open(struct inode *inode, struct file *file)
818{ 818{
819 return single_open(file, keys_proc_show, PDE(inode)->data); 819 return single_open(file, keys_proc_show, PDE_DATA(inode));
820} 820}
821 821
822static ssize_t keys_proc_write(struct file *file, const char __user *buf, 822static 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_inode(file))->data; 825 struct toshiba_acpi_dev *dev = PDE_DATA(file_inode(file));
826 char cmd[42]; 826 char cmd[42];
827 size_t len; 827 size_t len;
828 int value; 828 int value;
@@ -859,7 +859,7 @@ static int version_proc_show(struct seq_file *m, void *v)
859 859
860static int version_proc_open(struct inode *inode, struct file *file) 860static int version_proc_open(struct inode *inode, struct file *file)
861{ 861{
862 return single_open(file, version_proc_show, PDE(inode)->data); 862 return single_open(file, version_proc_show, PDE_DATA(inode));
863} 863}
864 864
865static const struct file_operations version_proc_fops = { 865static const struct file_operations version_proc_fops = {