class: rename "devices" to "class_devices" in internal class structure
This renames the struct class "devices" field to be "class_devices" to make things easier when struct bus_type and struct class merge in the future. It also makes grepping for fields easier as well. Based on an idea from Kay. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@ -906,7 +906,7 @@ int device_add(struct device *dev)
|
||||
if (dev->class) {
|
||||
down(&dev->class->p->sem);
|
||||
/* tie the class to the device */
|
||||
list_add_tail(&dev->node, &dev->class->p->devices);
|
||||
list_add_tail(&dev->node, &dev->class->p->class_devices);
|
||||
|
||||
/* notify any interfaces that the device is here */
|
||||
list_for_each_entry(class_intf, &dev->class->p->interfaces,
|
||||
|
Reference in New Issue
Block a user