diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-11-02 08:47:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:22 -0500 |
commit | 000f2a4d8cfc1e1cbc0aa98136015e7ae7719b46 (patch) | |
tree | f501a2d118797a88184a77be089d335c4cc48e88 /include/linux | |
parent | 4443d07fcfab39c4d2d9d7711cff983f15b374fc (diff) |
Driver Core: kill subsys_attribute and default sysfs ops
Remove the no longer needed subsys_attributes, they are all converted to
the more sensical kobj_attributes.
There is no longer a magic fallback in sysfs attribute operations, all
kobjects which create simple attributes need explicitely a ktype
assigned, which tells the core what was intended here.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/kobject.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index 29dc444e3361..29841bb5badb 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h | |||
@@ -216,15 +216,6 @@ extern struct kset *firmware_kset; | |||
216 | extern int __must_check subsystem_register(struct kset *); | 216 | extern int __must_check subsystem_register(struct kset *); |
217 | extern void subsystem_unregister(struct kset *); | 217 | extern void subsystem_unregister(struct kset *); |
218 | 218 | ||
219 | struct subsys_attribute { | ||
220 | struct attribute attr; | ||
221 | ssize_t (*show)(struct kset *, char *); | ||
222 | ssize_t (*store)(struct kset *, const char *, size_t); | ||
223 | }; | ||
224 | |||
225 | extern int __must_check subsys_create_file(struct kset *, | ||
226 | struct subsys_attribute *); | ||
227 | |||
228 | #if defined(CONFIG_HOTPLUG) | 219 | #if defined(CONFIG_HOTPLUG) |
229 | int kobject_uevent(struct kobject *kobj, enum kobject_action action); | 220 | int kobject_uevent(struct kobject *kobj, enum kobject_action action); |
230 | int kobject_uevent_env(struct kobject *kobj, enum kobject_action action, | 221 | int kobject_uevent_env(struct kobject *kobj, enum kobject_action action, |