summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/interface.h
diff options
context:
space:
mode:
authorJohan Hovold2016-03-09 12:20:36 +0100
committerGreg Kroah-Hartman2016-03-10 22:57:42 +0100
commit7a137fb290df63f24242fc4996decd0b339ba3b1 (patch)
treea977d0c2845747f32274a0b801cc855fcff38e02 /drivers/staging/greybus/interface.h
parentgreybus: svc: refactor interface-route destruction (diff)
downloadkernel-qcow2-linux-7a137fb290df63f24242fc4996decd0b339ba3b1.tar.gz
kernel-qcow2-linux-7a137fb290df63f24242fc4996decd0b339ba3b1.tar.xz
kernel-qcow2-linux-7a137fb290df63f24242fc4996decd0b339ba3b1.zip
greybus: interface: separate initialisation and registration
Separate interface initialisation from registration of the interface and its bundles. This is a step towards registering also interfaces that failed to initialise (e.g. a dummy interface). Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Jeffrey Carlyle <jcarlyle@google.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/interface.h')
-rw-r--r--drivers/staging/greybus/interface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/interface.h b/drivers/staging/greybus/interface.h
index 8d48cfa378e1..5238804e236b 100644
--- a/drivers/staging/greybus/interface.h
+++ b/drivers/staging/greybus/interface.h
@@ -48,6 +48,7 @@ struct gb_interface *gb_interface_find(struct gb_host_device *hd,
struct gb_interface *gb_interface_create(struct gb_host_device *hd,
u8 interface_id);
int gb_interface_init(struct gb_interface *intf);
+int gb_interface_add(struct gb_interface *intf);
void gb_interface_remove(struct gb_interface *intf);
void gb_interfaces_remove(struct gb_host_device *hd);