diff options
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r-- | include/linux/sysfs.h | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 802710438a9e..27bad59dae79 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
@@ -32,7 +32,7 @@ struct attribute { | |||
32 | 32 | ||
33 | struct attribute_group { | 33 | struct attribute_group { |
34 | const char *name; | 34 | const char *name; |
35 | int (*is_visible)(struct kobject *, | 35 | mode_t (*is_visible)(struct kobject *, |
36 | struct attribute *, int); | 36 | struct attribute *, int); |
37 | struct attribute **attrs; | 37 | struct attribute **attrs; |
38 | }; | 38 | }; |
@@ -105,6 +105,8 @@ void sysfs_remove_link(struct kobject *kobj, const char *name); | |||
105 | 105 | ||
106 | int __must_check sysfs_create_group(struct kobject *kobj, | 106 | int __must_check sysfs_create_group(struct kobject *kobj, |
107 | const struct attribute_group *grp); | 107 | const struct attribute_group *grp); |
108 | int sysfs_update_group(struct kobject *kobj, | ||
109 | const struct attribute_group *grp); | ||
108 | void sysfs_remove_group(struct kobject *kobj, | 110 | void sysfs_remove_group(struct kobject *kobj, |
109 | const struct attribute_group *grp); | 111 | const struct attribute_group *grp); |
110 | int sysfs_add_file_to_group(struct kobject *kobj, | 112 | int sysfs_add_file_to_group(struct kobject *kobj, |
@@ -131,7 +133,6 @@ static inline int sysfs_create_dir(struct kobject *kobj) | |||
131 | 133 | ||
132 | static inline void sysfs_remove_dir(struct kobject *kobj) | 134 | static inline void sysfs_remove_dir(struct kobject *kobj) |
133 | { | 135 | { |
134 | ; | ||
135 | } | 136 | } |
136 | 137 | ||
137 | static inline int sysfs_rename_dir(struct kobject *kobj, const char *new_name) | 138 | static inline int sysfs_rename_dir(struct kobject *kobj, const char *new_name) |
@@ -160,7 +161,6 @@ static inline int sysfs_chmod_file(struct kobject *kobj, | |||
160 | static inline void sysfs_remove_file(struct kobject *kobj, | 161 | static inline void sysfs_remove_file(struct kobject *kobj, |
161 | const struct attribute *attr) | 162 | const struct attribute *attr) |
162 | { | 163 | { |
163 | ; | ||
164 | } | 164 | } |
165 | 165 | ||
166 | static inline int sysfs_create_bin_file(struct kobject *kobj, | 166 | static inline int sysfs_create_bin_file(struct kobject *kobj, |
@@ -169,10 +169,9 @@ static inline int sysfs_create_bin_file(struct kobject *kobj, | |||
169 | return 0; | 169 | return 0; |
170 | } | 170 | } |
171 | 171 | ||
172 | static inline int sysfs_remove_bin_file(struct kobject *kobj, | 172 | static inline void sysfs_remove_bin_file(struct kobject *kobj, |
173 | struct bin_attribute *attr) | 173 | struct bin_attribute *attr) |
174 | { | 174 | { |
175 | return 0; | ||
176 | } | 175 | } |
177 | 176 | ||
178 | static inline int sysfs_create_link(struct kobject *kobj, | 177 | static inline int sysfs_create_link(struct kobject *kobj, |
@@ -183,7 +182,6 @@ static inline int sysfs_create_link(struct kobject *kobj, | |||
183 | 182 | ||
184 | static inline void sysfs_remove_link(struct kobject *kobj, const char *name) | 183 | static inline void sysfs_remove_link(struct kobject *kobj, const char *name) |
185 | { | 184 | { |
186 | ; | ||
187 | } | 185 | } |
188 | 186 | ||
189 | static inline int sysfs_create_group(struct kobject *kobj, | 187 | static inline int sysfs_create_group(struct kobject *kobj, |
@@ -192,10 +190,21 @@ static inline int sysfs_create_group(struct kobject *kobj, | |||
192 | return 0; | 190 | return 0; |
193 | } | 191 | } |
194 | 192 | ||
193 | static inline int sysfs_update_group(struct kobject *kobj, | ||
194 | const struct attribute_group *grp) | ||
195 | { | ||
196 | return 0; | ||
197 | } | ||
198 | |||
199 | static inline int sysfs_update_group(struct kobject *kobj, | ||
200 | const struct attribute_group *grp) | ||
201 | { | ||
202 | return 0; | ||
203 | } | ||
204 | |||
195 | static inline void sysfs_remove_group(struct kobject *kobj, | 205 | static inline void sysfs_remove_group(struct kobject *kobj, |
196 | const struct attribute_group *grp) | 206 | const struct attribute_group *grp) |
197 | { | 207 | { |
198 | ; | ||
199 | } | 208 | } |
200 | 209 | ||
201 | static inline int sysfs_add_file_to_group(struct kobject *kobj, | 210 | static inline int sysfs_add_file_to_group(struct kobject *kobj, |