diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-04-29 17:08:34 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-04-29 14:27:05 -0700 |
commit | 1c3aead12ea4df73b7ae552aa4f4e83bc1f0baa6 (patch) | |
tree | e825ab4fc87413154d501d4e86ec8d5204aac85d /drivers/staging/greybus/control.c | |
parent | 5fdc027d5441aecb94ce44de0402bdec3a731de8 (diff) | |
download | op-kernel-dev-1c3aead12ea4df73b7ae552aa4f4e83bc1f0baa6.zip op-kernel-dev-1c3aead12ea4df73b7ae552aa4f4e83bc1f0baa6.tar.gz |
greybus: control: implement mode-switch operation
Implement the unidirectional mode-switch operation.
This operation will be used in the implementation of the new generic
mode-switch functionality.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/greybus/control.c b/drivers/staging/greybus/control.c index 20aa366..1b28899 100644 --- a/drivers/staging/greybus/control.c +++ b/drivers/staging/greybus/control.c @@ -149,6 +149,13 @@ int gb_control_disconnected_operation(struct gb_control *control, u16 cport_id) sizeof(request), NULL, 0); } +int gb_control_mode_switch_operation(struct gb_control *control) +{ + return gb_operation_unidirectional(control->connection, + GB_CONTROL_TYPE_MODE_SWITCH, + NULL, 0); +} + int gb_control_get_interface_version_operation(struct gb_interface *intf) { struct gb_control_interface_version_response response; |