]> git.neil.brown.name Git - history.git/commit
driver model: make classes and interfaces use kobject infrastructure.
authorPatrick Mochel <mochel@osdl.org>
Wed, 20 Nov 2002 15:05:27 +0000 (09:05 -0600)
committerPatrick Mochel <mochel@osdl.org>
Wed, 20 Nov 2002 15:05:27 +0000 (09:05 -0600)
commitb47b46a39bd5a4ee88eafbfc0345ad1a41490ad0
tree54c274cff6230c74fe792cfbe3a6ecad6b670eb4
parent63ae7a91aa7156baa2b0e750ad288f5858ffb246
driver model: make classes and interfaces use kobject infrastructure.

Like the other objects, this allows a decent bit of cleanup. Details include:

- use rwsem in subsytem, instead of one in struct device_class.

- use refcount in struct kobject, instead of one in struct device_class.

- kill class's present flag.

- kill class_list, since we can just use class_subsys's.

- make interfaces instances of their class's subsystem. This allows us to
kill struct device_class::intf_list, and struct device_interface::node.
drivers/base/class.c
drivers/base/intf.c
include/linux/device.h