diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-01-19 12:51:21 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-01-19 12:17:13 -0800 |
commit | b807aa7aa51129b1754e7d17f6a2e30e3c6f7a4b (patch) | |
tree | 7cef4e9e6ff0e64a5a9f223396eb272064e82d52 /drivers/staging/greybus/control.h | |
parent | 96a9b9b0eb2c5b9626bdad02c057fb22f133fc86 (diff) |
greybus: control: add bundle-version operation
Add bundle-version operation to fetch the version of the bundle class.
Retrieve the bundle version of all bundles when initialising the
interface in case the control-protocol version is greater than 0.1.
Reviewed-by: Viresh Kumar <viresh.kumar@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/control.h')
-rw-r--r-- | drivers/staging/greybus/control.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/greybus/control.h b/drivers/staging/greybus/control.h index dd0a2d79da20..d31e7c6d866a 100644 --- a/drivers/staging/greybus/control.h +++ b/drivers/staging/greybus/control.h @@ -15,6 +15,8 @@ struct gb_control { u8 protocol_major; u8 protocol_minor; + + bool has_bundle_version; }; struct gb_control *gb_control_create(struct gb_interface *intf); @@ -22,6 +24,7 @@ int gb_control_enable(struct gb_control *control); void gb_control_disable(struct gb_control *control); void gb_control_destroy(struct gb_control *control); +int gb_control_get_bundle_versions(struct gb_control *control); int gb_control_connected_operation(struct gb_control *control, u16 cport_id); int gb_control_disconnected_operation(struct gb_control *control, u16 cport_id); int gb_control_get_manifest_size_operation(struct gb_interface *intf); |