summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/interface.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-04-13 19:19:06 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2016-04-21 10:09:03 +0900
commit49605839bcd644016e2ec3b1534104e2cb3ce984 (patch)
treeab7f3b6f6f0a5bb89053d3a7744eafecc645ba27 /drivers/staging/greybus/interface.h
parentb6147e4fb13e926878dbef9adae429faf8d8c2dd (diff)
greybus: interface: reduce control-device lifetime
Make the control-device lifetime coincide with when the interface is enabled (enumerated). This is needed to be able register a new control device after a mode switch. Signed-off-by: Johan Hovold <johan@hovoldconsulting.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 567b6c8ae713..63ba696c14a5 100644
--- a/drivers/staging/greybus/interface.h
+++ b/drivers/staging/greybus/interface.h
@@ -39,6 +39,7 @@ struct gb_interface {
unsigned long quirks;
bool disconnected;
+ bool enabled;
};
#define to_gb_interface(d) container_of(d, struct gb_interface, dev)