summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/control.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-09-07 16:01:24 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-09-14 21:19:46 -0700
commit5a5296bb8d67e90866d352b93ecce95d08b77fc0 (patch)
treed6d31431ad854705253073817962bea52cbe1099 /drivers/staging/greybus/control.c
parentfb198317fd89ec02582ffd4ca318ec088d06c74e (diff)
downloadop-kernel-dev-5a5296bb8d67e90866d352b93ecce95d08b77fc0.zip
op-kernel-dev-5a5296bb8d67e90866d352b93ecce95d08b77fc0.tar.gz
greybus: Add flags to struct gb_protocol
This helps in removing special per-protocol code, with the help of generic flags passed by protocol drivers. Reviewed-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/control.c')
-rw-r--r--drivers/staging/greybus/control.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/greybus/control.c b/drivers/staging/greybus/control.c
index e675c5c..c092beb 100644
--- a/drivers/staging/greybus/control.c
+++ b/drivers/staging/greybus/control.c
@@ -130,5 +130,7 @@ static struct gb_protocol control_protocol = {
.connection_init = gb_control_connection_init,
.connection_exit = gb_control_connection_exit,
.request_recv = gb_control_request_recv,
+ .flags = GB_PROTOCOL_SKIP_CONTROL_CONNECTED |
+ GB_PROTOCOL_SKIP_CONTROL_DISCONNECTED,
};
gb_builtin_protocol_driver(control_protocol);
OpenPOWER on IntegriCloud