kref_init(&hd->kref);
hd->parent = parent;
hd->driver = driver;
- INIT_LIST_HEAD(&hd->modules);
+ INIT_LIST_HEAD(&hd->interfaces);
INIT_LIST_HEAD(&hd->connections);
ida_init(&hd->cport_id_map);
struct device *parent;
const struct greybus_host_driver *driver;
- struct list_head modules;
+ struct list_head interfaces;
struct list_head connections;
struct ida cport_id_map;
u8 device_id;
{
struct gb_interface *intf;
- list_for_each_entry(intf, &hd->modules, links)
+ list_for_each_entry(intf, &hd->interfaces, links)
if (intf->module_id == module_id)
return intf;
}
spin_lock_irq(&gb_modules_lock);
- list_add_tail(&intf->links, &hd->modules);
+ list_add_tail(&intf->links, &hd->interfaces);
spin_unlock_irq(&gb_modules_lock);
return intf;
{
struct gb_interface *intf, *temp;
- list_for_each_entry_safe(intf, temp, &hd->modules, links)
+ list_for_each_entry_safe(intf, temp, &hd->interfaces, links)
gb_interface_destroy(intf);
}
struct device dev;
struct list_head bundles;
- struct list_head links; /* greybus_host_device->modules */
+ struct list_head links; /* greybus_host_device->interfaces */
u8 module_id; /* Physical location within the Endo */
/* Information taken from the manifest module descriptor */