greybus: connection: Create gb_connection_create_range() to specify hd-cport-id range
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 21 Jul 2015 12:14:15 +0000 (17:44 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 22 Jul 2015 17:11:05 +0000 (10:11 -0700)
commit007f979216bda08bb899c78d4f20c229d5fe6845
tree14be501085ebb617bb947d5cffeb119b3302385a
parente602df658888d0dc1d51ab907036c67b87ca9f3a
greybus: connection: Create gb_connection_create_range() to specify hd-cport-id range

We need to allocate specific hd-cport-id for AP's control/svc protocols.
Support that by splitting functionality of gb_connection_create() into a
new routine, which takes range of hd_cport_id's to allocate from.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/connection.h