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 | 97ae69fdbaa71a8f7dbc20bf10fb349d1759152f (patch) | |
tree | 9d8c3842cf7e1d43d67c265e5e69a964df541cd1 /drivers/base/core.c | |
parent | 7c71448b8aa80123fc521563d5f7c63a099d97ab (diff) |
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>
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r-- | drivers/base/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index 64c150b5a883..52d1e71f2a4c 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -906,7 +906,7 @@ int device_add(struct device *dev) | |||
906 | if (dev->class) { | 906 | if (dev->class) { |
907 | down(&dev->class->p->sem); | 907 | down(&dev->class->p->sem); |
908 | /* tie the class to the device */ | 908 | /* tie the class to the device */ |
909 | list_add_tail(&dev->node, &dev->class->p->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, &dev->class->p->interfaces, |