diff options
author | Alex Elder | 2014-10-02 04:54:12 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-10-03 06:17:20 +0200 |
commit | 8c12cde3c2b98ec2d298b2536bcb0cb1d7591b85 (patch) | |
tree | f37399e181456b6539c6f5ca12c519b966046f7c /drivers/staging/greybus/module.c | |
parent | greybus: isolate greybus module code (diff) | |
download | kernel-qcow2-linux-8c12cde3c2b98ec2d298b2536bcb0cb1d7591b85.tar.gz kernel-qcow2-linux-8c12cde3c2b98ec2d298b2536bcb0cb1d7591b85.tar.xz kernel-qcow2-linux-8c12cde3c2b98ec2d298b2536bcb0cb1d7591b85.zip |
greybus: define greybus interface abstraction
Define new source files "interface.h" and "interface.c" to contain
the definitions of the Greybus interface abstraction. A Greybus
interface represents a UniPro device present in a UniPro module.
For Project Ara, each interface block on a module implements a
UniPro interface.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/module.c')
-rw-r--r-- | drivers/staging/greybus/module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/module.c b/drivers/staging/greybus/module.c index 31017c2cae2f..e77791295a82 100644 --- a/drivers/staging/greybus/module.c +++ b/drivers/staging/greybus/module.c @@ -67,6 +67,7 @@ struct gb_module *gb_module_create(struct greybus_host_device *hd, u8 module_id) module->hd = hd; /* XXX refcount? */ module->module_id = module_id; + INIT_LIST_HEAD(&module->interfaces); spin_lock_irq(&gb_modules_lock); list_add_tail(&module->links, &hd->modules); |