diff options
author | Johan Hovold | 2016-01-08 20:13:45 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-01-13 03:17:35 +0100 |
commit | 4d0bee11253ba98c4a9c9ebb6df19c3185fe1fd8 (patch) | |
tree | fb6c3e55805f450a15225834ae683b05c93d774a /drivers/staging/greybus/connection.h | |
parent | greybus: svc: add intf_eject attribute (diff) | |
download | kernel-qcow2-linux-4d0bee11253ba98c4a9c9ebb6df19c3185fe1fd8.tar.gz kernel-qcow2-linux-4d0bee11253ba98c4a9c9ebb6df19c3185fe1fd8.tar.xz kernel-qcow2-linux-4d0bee11253ba98c4a9c9ebb6df19c3185fe1fd8.zip |
greybus: connection: fix connection-state handling
Set connection state to ENABLE before sending the control connected
message, and set state DISABLE after sending the control disconnected
event.
Remove the now unused ERROR connection state.
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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/greybus/connection.h b/drivers/staging/greybus/connection.h index b795b44c1859..ef31c8d6dfe0 100644 --- a/drivers/staging/greybus/connection.h +++ b/drivers/staging/greybus/connection.h @@ -17,8 +17,7 @@ enum gb_connection_state { GB_CONNECTION_STATE_INVALID = 0, GB_CONNECTION_STATE_DISABLED = 1, GB_CONNECTION_STATE_ENABLED = 2, - GB_CONNECTION_STATE_ERROR = 3, - GB_CONNECTION_STATE_DESTROYING = 4, + GB_CONNECTION_STATE_DESTROYING = 3, }; struct gb_connection { |