summaryrefslogtreecommitdiffstats
path: root/drivers/base/core.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2008-05-28 18:28:39 +0200
committerGreg Kroah-Hartman2008-07-22 06:54:51 +0200
commit184f1f779d5a2e62de4a0b34842ddf8546beca8f (patch)
tree49528aa1de99e2176daddd293ef0c92a37e4d859 /drivers/base/core.c
parentclass: rename "devices" to "class_devices" in internal class structure (diff)
downloadkernel-qcow2-linux-184f1f779d5a2e62de4a0b34842ddf8546beca8f.tar.gz
kernel-qcow2-linux-184f1f779d5a2e62de4a0b34842ddf8546beca8f.tar.xz
kernel-qcow2-linux-184f1f779d5a2e62de4a0b34842ddf8546beca8f.zip
class: rename "interfaces" to "class_interfaces" in internal class structure
This renames the struct class "interfaces" field to be "class_interfaces" 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>
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r--drivers/base/core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 52d1e71f2a4c..76fdd41fea0e 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -909,8 +909,8 @@ int device_add(struct device *dev)
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,
- node)
+ list_for_each_entry(class_intf,
+ &dev->class->p->class_interfaces, node)
if (class_intf->add_dev)
class_intf->add_dev(dev, class_intf);
up(&dev->class->p->sem);
@@ -1016,8 +1016,8 @@ void device_del(struct device *dev)
down(&dev->class->p->sem);
/* notify any interfaces that the device is now gone */
- list_for_each_entry(class_intf, &dev->class->p->interfaces,
- node)
+ list_for_each_entry(class_intf,
+ &dev->class->p->class_interfaces, node)
if (class_intf->remove_dev)
class_intf->remove_dev(dev, class_intf);
/* remove the device from the class list */