diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-05-28 12:28:39 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-22 00:54:51 -0400 |
commit | 184f1f779d5a2e62de4a0b34842ddf8546beca8f (patch) | |
tree | 49528aa1de99e2176daddd293ef0c92a37e4d859 /drivers/base/core.c | |
parent | 97ae69fdbaa71a8f7dbc20bf10fb349d1759152f (diff) |
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.c | 8 |
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) | |||
909 | list_add_tail(&dev->node, &dev->class->p->class_devices); | 909 | list_add_tail(&dev->node, &dev->class->p->class_devices); |
910 | 910 | ||
911 | /* notify any interfaces that the device is here */ | 911 | /* notify any interfaces that the device is here */ |
912 | list_for_each_entry(class_intf, &dev->class->p->interfaces, | 912 | list_for_each_entry(class_intf, |
913 | node) | 913 | &dev->class->p->class_interfaces, node) |
914 | if (class_intf->add_dev) | 914 | if (class_intf->add_dev) |
915 | class_intf->add_dev(dev, class_intf); | 915 | class_intf->add_dev(dev, class_intf); |
916 | up(&dev->class->p->sem); | 916 | up(&dev->class->p->sem); |
@@ -1016,8 +1016,8 @@ void device_del(struct device *dev) | |||
1016 | 1016 | ||
1017 | down(&dev->class->p->sem); | 1017 | down(&dev->class->p->sem); |
1018 | /* notify any interfaces that the device is now gone */ | 1018 | /* notify any interfaces that the device is now gone */ |
1019 | list_for_each_entry(class_intf, &dev->class->p->interfaces, | 1019 | list_for_each_entry(class_intf, |
1020 | node) | 1020 | &dev->class->p->class_interfaces, node) |
1021 | if (class_intf->remove_dev) | 1021 | if (class_intf->remove_dev) |
1022 | class_intf->remove_dev(dev, class_intf); | 1022 | class_intf->remove_dev(dev, class_intf); |
1023 | /* remove the device from the class list */ | 1023 | /* remove the device from the class list */ |