]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
greybus: connection: fix connection-state handling
authorJohan Hovold <johan@hovoldconsulting.com>
Fri, 8 Jan 2016 19:13:45 +0000 (20:13 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 13 Jan 2016 02:17:35 +0000 (18:17 -0800)
commit4d0bee11253ba98c4a9c9ebb6df19c3185fe1fd8
treefb6c3e55805f450a15225834ae683b05c93d774a
parent2c92bd5235ac72aa659150ebac309dd4f1c01079
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>
drivers/staging/greybus/connection.c
drivers/staging/greybus/connection.h