summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/control.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-12-28 11:59:01 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-12-30 13:13:04 -0800
commitd39bf704acbd254576e3fc880ec13e6cd09e88c7 (patch)
tree9fbe2f99d56229a5c4491553c148a90dfa01b814 /drivers/staging/greybus/control.h
parent57c6bcc635626e24fff3546bb072b4ba4163872b (diff)
downloadlinux-d39bf704acbd254576e3fc880ec13e6cd09e88c7.tar.bz2
greybus: interface: Fetch and expose version of interface's firmware
The version of the currently running firmware on the module is useful for userspace as it can be used to find if an update is available or not. This patch fetches interface's version with a new control operation and exposes the same in userspace. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/control.h b/drivers/staging/greybus/control.h
index da0fa6652dca..7cb3dd2290d7 100644
--- a/drivers/staging/greybus/control.h
+++ b/drivers/staging/greybus/control.h
@@ -24,6 +24,7 @@ int gb_control_disconnected_operation(struct gb_control *control, u16 cport_id);
int gb_control_get_manifest_size_operation(struct gb_interface *intf);
int gb_control_get_manifest_operation(struct gb_interface *intf, void *manifest,
size_t size);
+int gb_control_get_interface_version_operation(struct gb_interface *intf);
int gb_control_protocol_init(void);
void gb_control_protocol_exit(void);