• Patrick Mochel's avatar
    driver model: clean up interface handling. · 6f614c99
    Patrick Mochel authored
    - Make sure devices are added to an interface if the interface is registered
      e.g. as a module.
    - Make sure interface data descriptors are inserted into the interface's list
      by adding a kobject to them and calling kobject_register.
    - Create interface_remove_data() for explicit removal of data descriptor.
    - Break common pieces into separate functions.
    - Add lots of comments.
    - Add class_list to struct device, so we can access the devices registered
      with the class. 
    6f614c99
device.h 11.3 KB