summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2002-10-30 00:04:57 -0800
committerPatrick Mochel <mochel@osdl.org>2002-10-30 00:04:57 -0800
commit289609f07f4e96ef139af61bd2ee3d8f1592ba17 (patch)
treeda0259aecedc3a3469f4c9e92051e8bc4ef5879e /include
parent77057f5a28c94d8ed1779b829d9ef0ad0a95db44 (diff)
driver model: convert bus drivers to use kobjects and sysfs.
- create bus subsystem and register on start up. - add struct subsystem to struct bus type to get it in the object hierarchy. - add device and driver subsystems to struct bus type to give it hierarchy like it previously had. - convert bus show()/store() callbacks to know about struct kobject. - convert bus file creation/removal to use struct kobject. - create symlinks from to device directories, like they had in driverfs.
Diffstat (limited to 'include')
-rw-r--r--include/linux/device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index ca7bf83886ed..66d4f313a809 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -66,6 +66,9 @@ struct bus_type {
atomic_t refcount;
u32 present;
+ struct subsystem subsys;
+ struct subsystem drvsubsys;
+ struct subsystem devsubsys;
struct list_head node;
struct list_head devices;
struct list_head drivers;