greybus: connection: add per-connection request handlers
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 19 Jan 2016 11:51:02 +0000 (12:51 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 19 Jan 2016 20:12:40 +0000 (12:12 -0800)
commitbfa9a5e2d07937a7620d55ff6eb55b480bc13100
tree735273bfafedadaf0ccce030267e2778a79db607
parent1cbfab3804b185ce2744b5b8064d06ca19491e36
greybus: connection: add per-connection request handlers

Add a connection request-handler field to struct gb_connection that is
set when the connection is enabled.

This is a step towards removing the legacy protocol abstraction from
core, and will also be used to implement unidirectional connection
states (e.g. only outgoing operations are allowed).

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