greybus: hd: generalise cport allocation
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 11 May 2016 08:18:02 +0000 (10:18 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 13 May 2016 13:30:05 +0000 (15:30 +0200)
commitf2aae1c6e60f2acd636c005951a2c932bc5c8d05
tree9510b4eca87e0edc136302e1b4074164d8a108cc
parent050615076699e537b26ed0934e105e78e7f1e765
greybus: hd: generalise cport allocation

Generalise CPort allocation by allowing host-device drivers to override
the default implementation.

Also pass the connection flags down the stack as such information is
needed for proper CPort allocation. Specifically, this will initially be
used to allow the camera driver to allocate the dedicated CDSI CPorts.

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>
drivers/staging/greybus/connection.c
drivers/staging/greybus/hd.c
drivers/staging/greybus/hd.h