greybus: control: drop legacy-protocol dependency
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 19 Jan 2016 11:51:14 +0000 (12:51 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 19 Jan 2016 20:17:13 +0000 (12:17 -0800)
commite217ae762bccb0ba0109887cefec3e20e5549a48
treefac7fea51714f8eb5ec281812e75b333f4f3c27d
parent6bd6e148930b6f6dff7a6d664b37ba76d6d2c75e
greybus: control: drop legacy-protocol dependency

Drop dependency on the legacy protocol abstraction.

Instead implement the protocol-specific version request directly, and
use the new interface for managing the control connection.

Note that the version request is being removed from most protocols, but
we need to keep the current request for the control protocol as-is
indefinitely to maintain backwards compatibility (e.g. with the ES2/ES3
bootrom).

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/control.c
drivers/staging/greybus/control.h
drivers/staging/greybus/core.c
drivers/staging/greybus/greybus_protocols.h