greybus: connection: clean up svc-connection creation
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 17 Sep 2015 11:17:21 +0000 (13:17 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 17 Sep 2015 21:33:07 +0000 (14:33 -0700)
commita95c258c6fe6b4929f52398d1b6cd5432efe2c86
treeedcc36f0efe63c5f09aa04f755b72710675f2c98
parentced6007a6d2d48efb32d2ca48a13304a04470659
greybus: connection: clean up svc-connection creation

Move SVC-connection creation to its own helper.

Note that the connection_create host-driver callback is really
unrelated to the SVC connection, and will be removed by a later patch.
It is is included for now as the connection_destroy callback is
currently made from the SVC-connection-destroy helper.

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