summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/hd.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-04-23 18:47:24 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2016-04-25 11:08:30 -0700
commitb15d97d77017dc168c74c5e9aacfe14ff74dcbe9 (patch)
tree4fe55aad777a3d5614cb4e61e0bf54a7fe63b5aa /drivers/staging/greybus/hd.h
parent844fcbfeb6491d95b7e19b4705f9eb576a210536 (diff)
greybus: core: add module abstraction
Add Greybus module abstraction that will be used to implement controlled module removal (eject) and represent module geometry. Greybus module devices correspond to physical modules and have one or more interfaces. Modules have an id that is identical to the id of their primary interface, which in turn is the interface with lowest numbered id. The module name is constructed from the bus and module id: <bus_id>-<module_id> Interfaces, bundles, and control devices are consequently renamed as <bus_id>-<module_id>.<interface_id> <bus_id>-<module_id>.<interface_id>.<bundle_id> <bus_id>-<module_id>.<interface_id>.ctrl As before, interface ids (and therefore in a sense now also module ids) correspond to physical interface positions on the frame. Modules have the following attributes: module_id num_interfaces where module_id is the id of the module and num_interface the number of interfaces the module has. Note that until SVC module-size detection has been implemented, all interfaces are considered to be part of 1x2 modules. Specifically, the two interfaces of a 2x2 module will be presented as two 1x2 modules for now. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/hd.h')
-rw-r--r--drivers/staging/greybus/hd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/hd.h b/drivers/staging/greybus/hd.h
index b481dd03bd73..ff71936a7932 100644
--- a/drivers/staging/greybus/hd.h
+++ b/drivers/staging/greybus/hd.h
@@ -34,7 +34,7 @@ struct gb_host_device {
int bus_id;
const struct gb_hd_driver *driver;
- struct list_head interfaces;
+ struct list_head modules;
struct list_head connections;
struct ida cport_id_map;