diff options
Diffstat (limited to 'fs/sysfs/file.c')
-rw-r--r-- | fs/sysfs/file.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index 887703a79065..fd104b282f81 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c | |||
@@ -41,7 +41,7 @@ static const struct sysfs_ops *sysfs_file_ops(struct kernfs_node *kn) | |||
41 | */ | 41 | */ |
42 | static int sysfs_kf_seq_show(struct seq_file *sf, void *v) | 42 | static int sysfs_kf_seq_show(struct seq_file *sf, void *v) |
43 | { | 43 | { |
44 | struct sysfs_open_file *of = sf->private; | 44 | struct kernfs_open_file *of = sf->private; |
45 | struct kobject *kobj = of->kn->parent->priv; | 45 | struct kobject *kobj = of->kn->parent->priv; |
46 | const struct sysfs_ops *ops = sysfs_file_ops(of->kn); | 46 | const struct sysfs_ops *ops = sysfs_file_ops(of->kn); |
47 | ssize_t count; | 47 | ssize_t count; |
@@ -78,7 +78,7 @@ static int sysfs_kf_seq_show(struct seq_file *sf, void *v) | |||
78 | return 0; | 78 | return 0; |
79 | } | 79 | } |
80 | 80 | ||
81 | static ssize_t sysfs_kf_bin_read(struct sysfs_open_file *of, char *buf, | 81 | static ssize_t sysfs_kf_bin_read(struct kernfs_open_file *of, char *buf, |
82 | size_t count, loff_t pos) | 82 | size_t count, loff_t pos) |
83 | { | 83 | { |
84 | struct bin_attribute *battr = of->kn->priv; | 84 | struct bin_attribute *battr = of->kn->priv; |
@@ -102,7 +102,7 @@ static ssize_t sysfs_kf_bin_read(struct sysfs_open_file *of, char *buf, | |||
102 | } | 102 | } |
103 | 103 | ||
104 | /* kernfs write callback for regular sysfs files */ | 104 | /* kernfs write callback for regular sysfs files */ |
105 | static ssize_t sysfs_kf_write(struct sysfs_open_file *of, char *buf, | 105 | static ssize_t sysfs_kf_write(struct kernfs_open_file *of, char *buf, |
106 | size_t count, loff_t pos) | 106 | size_t count, loff_t pos) |
107 | { | 107 | { |
108 | const struct sysfs_ops *ops = sysfs_file_ops(of->kn); | 108 | const struct sysfs_ops *ops = sysfs_file_ops(of->kn); |
@@ -115,7 +115,7 @@ static ssize_t sysfs_kf_write(struct sysfs_open_file *of, char *buf, | |||
115 | } | 115 | } |
116 | 116 | ||
117 | /* kernfs write callback for bin sysfs files */ | 117 | /* kernfs write callback for bin sysfs files */ |
118 | static ssize_t sysfs_kf_bin_write(struct sysfs_open_file *of, char *buf, | 118 | static ssize_t sysfs_kf_bin_write(struct kernfs_open_file *of, char *buf, |
119 | size_t count, loff_t pos) | 119 | size_t count, loff_t pos) |
120 | { | 120 | { |
121 | struct bin_attribute *battr = of->kn->priv; | 121 | struct bin_attribute *battr = of->kn->priv; |
@@ -136,7 +136,7 @@ static ssize_t sysfs_kf_bin_write(struct sysfs_open_file *of, char *buf, | |||
136 | return battr->write(of->file, kobj, battr, buf, pos, count); | 136 | return battr->write(of->file, kobj, battr, buf, pos, count); |
137 | } | 137 | } |
138 | 138 | ||
139 | static int sysfs_kf_bin_mmap(struct sysfs_open_file *of, | 139 | static int sysfs_kf_bin_mmap(struct kernfs_open_file *of, |
140 | struct vm_area_struct *vma) | 140 | struct vm_area_struct *vma) |
141 | { | 141 | { |
142 | struct bin_attribute *battr = of->kn->priv; | 142 | struct bin_attribute *battr = of->kn->priv; |