diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org.(none)> | 2005-04-19 16:14:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org.(none)> | 2005-04-19 16:14:28 -0400 |
commit | 9f6c6fc505560465be0964eb4da1b6ca97bd3951 (patch) | |
tree | 9660991b5e417ad7bb74e105c037ff358f60ba27 /include/linux/sysfs.h | |
parent | c3c661932cd53582c5b03692b99649300977248a (diff) | |
parent | f0e035f4b6940aae6836500b642029c289ed4535 (diff) |
Merge with kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6.git/
for 13 driver core, sysfs, and debugfs fixes.
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r-- | include/linux/sysfs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 6f502ff7902a..38b58b30814a 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
@@ -99,6 +99,9 @@ sysfs_create_file(struct kobject *, const struct attribute *); | |||
99 | extern int | 99 | extern int |
100 | sysfs_update_file(struct kobject *, const struct attribute *); | 100 | sysfs_update_file(struct kobject *, const struct attribute *); |
101 | 101 | ||
102 | extern int | ||
103 | sysfs_chmod_file(struct kobject *kobj, struct attribute *attr, mode_t mode); | ||
104 | |||
102 | extern void | 105 | extern void |
103 | sysfs_remove_file(struct kobject *, const struct attribute *); | 106 | sysfs_remove_file(struct kobject *, const struct attribute *); |
104 | 107 | ||
@@ -140,6 +143,10 @@ static inline int sysfs_update_file(struct kobject * k, const struct attribute * | |||
140 | { | 143 | { |
141 | return 0; | 144 | return 0; |
142 | } | 145 | } |
146 | static inline int sysfs_chmod_file(struct kobject *kobj, struct attribute *attr, mode_t mode) | ||
147 | { | ||
148 | return 0; | ||
149 | } | ||
143 | 150 | ||
144 | static inline void sysfs_remove_file(struct kobject * k, const struct attribute * a) | 151 | static inline void sysfs_remove_file(struct kobject * k, const struct attribute * a) |
145 | { | 152 | { |