greybus: interface: clean up control-connection handling
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 15 Dec 2015 14:28:56 +0000 (15:28 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Dec 2015 22:23:37 +0000 (14:23 -0800)
commitc634650ecc5b3db9ac4f1258387b87ff66386906
tree5fdc77e3622fa0891b31ffbeaa9a8e70b2b16230
parented972e3a36c3402479f46f6d0218e7ef586d0d3e
greybus: interface: clean up control-connection handling

Clean up control-connection handling by managing it through the control
structure and a higher-level control interface. Also make both the
control structure and connection lifetimes coincide with that of the
interface.

The control connection is now only enabled and disabled when the
interface is initialised and removed.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/control.c
drivers/staging/greybus/control.h
drivers/staging/greybus/interface.c