greybus: hd: move CPort allocation to host-device code
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 11 May 2016 08:17:59 +0000 (10:17 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 13 May 2016 13:30:05 +0000 (15:30 +0200)
commit74a5d93cee1fb08d8e576888418ddd401aba6713
treed3d2d497148a027fb9b8af05b780e880cc88dc65
parenta8af16313d18ce75d56c256fdfefed53a0572d45
greybus: hd: move CPort allocation to host-device code

Move host-device CPort allocation to the host-device code.

Proper CPort allocation requires knowledge of the hardware and must be
handled by the host-device driver. This is an intermediate step that
moves the generic CPort-allocation code to the host-device code.

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