diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-09-07 16:01:24 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-09-14 21:19:46 -0700 |
commit | 5a5296bb8d67e90866d352b93ecce95d08b77fc0 (patch) | |
tree | d6d31431ad854705253073817962bea52cbe1099 /drivers/staging/greybus/control.c | |
parent | fb198317fd89ec02582ffd4ca318ec088d06c74e (diff) | |
download | linux-5a5296bb8d67e90866d352b93ecce95d08b77fc0.tar.gz linux-5a5296bb8d67e90866d352b93ecce95d08b77fc0.tar.bz2 linux-5a5296bb8d67e90866d352b93ecce95d08b77fc0.zip |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/greybus/control.c b/drivers/staging/greybus/control.c index e675c5c89123..c092bebba77c 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); |