]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
greybus: interface_block.c: rename the "interfaces" list "bundles"
authorGreg Kroah-Hartman <greg@kroah.com>
Fri, 19 Dec 2014 22:56:29 +0000 (14:56 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 19 Dec 2014 23:35:44 +0000 (15:35 -0800)
Alex pointed out one rename I missed previously, this fixes up the
interface_block list of bundles name.

Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/bundle.c
drivers/staging/greybus/interface_block.c
drivers/staging/greybus/interface_block.h

index 885461598c94cd8595581447ab6dbfe10783f440..bad6cf6d17fcf8d963df008d30aec3607d279487 100644 (file)
@@ -83,7 +83,7 @@ struct gb_bundle *gb_bundle_create(struct gb_interface_block *gb_ib, u8 interfac
        }
 
        spin_lock_irq(&gb_bundles_lock);
-       list_add_tail(&bundle->links, &gb_ib->interfaces);
+       list_add_tail(&bundle->links, &gb_ib->bundles);
        spin_unlock_irq(&gb_bundles_lock);
 
        return bundle;
@@ -101,7 +101,7 @@ void gb_bundle_destroy(struct gb_interface_block *gb_ib)
                return;
 
        spin_lock_irq(&gb_bundles_lock);
-       list_for_each_entry_safe(bundle, temp, &gb_ib->interfaces, links) {
+       list_for_each_entry_safe(bundle, temp, &gb_ib->bundles, links) {
                list_del(&bundle->links);
                gb_bundle_connections_exit(bundle);
                device_del(&bundle->dev);
@@ -144,7 +144,7 @@ struct gb_bundle *gb_bundle_find(struct gb_interface_block *gb_ib, u8 bundle_id)
        struct gb_bundle *bundle;
 
        spin_lock_irq(&gb_bundles_lock);
-       list_for_each_entry(bundle, &gb_ib->interfaces, links)
+       list_for_each_entry(bundle, &gb_ib->bundles, links)
                if (bundle->id == bundle_id) {
                        spin_unlock_irq(&gb_bundles_lock);
                        return bundle;
index ee51613ab92d924bd4fb1aa30f76fdc784098394..f47c8fc1843307aa742573aae1f1310da4de8ee2 100644 (file)
@@ -126,7 +126,7 @@ static struct gb_interface_block *gb_ib_create(struct greybus_host_device *hd,
 
        gb_ib->hd = hd;         /* XXX refcount? */
        gb_ib->module_id = module_id;
-       INIT_LIST_HEAD(&gb_ib->interfaces);
+       INIT_LIST_HEAD(&gb_ib->bundles);
 
        gb_ib->dev.parent = hd->parent;
        gb_ib->dev.bus = &greybus_bus_type;
index 03da567c7ac9e21d8af9b198ccfb91838ec698ba..e0846d8ee84fa4ed2b8180d1e7e0f1f79097de34 100644 (file)
@@ -19,7 +19,7 @@
 struct gb_interface_block {
        struct device dev;
 
-       struct list_head interfaces;
+       struct list_head bundles;
        struct list_head links; /* greybus_host_device->modules */
        u8 module_id;           /* Physical location within the Endo */