diff options
author | Johan Hovold | 2016-06-22 11:42:03 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-06-25 01:22:30 +0200 |
commit | 1ba30c33096ced9d5c5814acdc46f53f3864f4e6 (patch) | |
tree | e09280ba6453cf4406d1d005f812887fceb718f4 /drivers/staging/greybus/connection.h | |
parent | greybus: hd: add flag argument to cport_enable callback (diff) | |
download | kernel-qcow2-linux-1ba30c33096ced9d5c5814acdc46f53f3864f4e6.tar.gz kernel-qcow2-linux-1ba30c33096ced9d5c5814acdc46f53f3864f4e6.tar.xz kernel-qcow2-linux-1ba30c33096ced9d5c5814acdc46f53f3864f4e6.zip |
greybus: connection: prevent drivers from specifying core flags
Prevent drivers from specifying core flags (currently only
GB_CONNECTION_FLAG_CONTROL) when creating connections.
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/connection.h')
-rw-r--r-- | drivers/staging/greybus/connection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/greybus/connection.h b/drivers/staging/greybus/connection.h index 7d0988ef1183..0ea8ac8fbb8f 100644 --- a/drivers/staging/greybus/connection.h +++ b/drivers/staging/greybus/connection.h @@ -19,6 +19,8 @@ #define GB_CONNECTION_FLAG_CDSI1 BIT(3) #define GB_CONNECTION_FLAG_CONTROL BIT(4) +#define GB_CONNECTION_FLAG_CORE_MASK GB_CONNECTION_FLAG_CONTROL + enum gb_connection_state { GB_CONNECTION_STATE_DISABLED = 0, GB_CONNECTION_STATE_ENABLED_TX = 1, |