greybus: svc: refactor interface-route creation
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 9 Mar 2016 11:20:34 +0000 (12:20 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 10 Mar 2016 21:57:42 +0000 (13:57 -0800)
commitbb2533a9742f19bfe6b87b64d54e846674e467d1
tree696db6885bb51ccbee406cf0c52989c7f548563f
parent60269b958ea127a46be9caf0deff931384c4dd2f
greybus: svc: refactor interface-route creation

Add interface-route-create helper to allocate an interface device id and
setup the route.

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>
drivers/staging/greybus/interface.c
drivers/staging/greybus/interface.h
drivers/staging/greybus/svc.c