greybus: interface: add active state flag
authorJohan Hovold <johan@hovoldconsulting.com>
Sat, 23 Apr 2016 16:47:26 +0000 (18:47 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 25 Apr 2016 18:08:30 +0000 (11:08 -0700)
commit1e1565e5fee47362baee92506749d80167a1456e
treeaa5dddbd45fd29f5a244d70298aeec2dfef8a22f
parent36602a2981c85de7b0b8600eb12cbad3d80eacd9
greybus: interface: add active state flag

Add active state flag to avoid deactivating an interface which is
already off.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/interface.c
drivers/staging/greybus/interface.h