diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-12-28 11:59:01 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-12-30 13:13:04 -0800 |
commit | d39bf704acbd254576e3fc880ec13e6cd09e88c7 (patch) | |
tree | 9fbe2f99d56229a5c4491553c148a90dfa01b814 /drivers/staging/greybus/interface.h | |
parent | 57c6bcc635626e24fff3546bb072b4ba4163872b (diff) | |
download | op-kernel-dev-d39bf704acbd254576e3fc880ec13e6cd09e88c7.zip op-kernel-dev-d39bf704acbd254576e3fc880ec13e6cd09e88c7.tar.gz |
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/interface.h')
-rw-r--r-- | drivers/staging/greybus/interface.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/greybus/interface.h b/drivers/staging/greybus/interface.h index a1a1f9f..4168a57 100644 --- a/drivers/staging/greybus/interface.h +++ b/drivers/staging/greybus/interface.h @@ -32,6 +32,9 @@ struct gb_interface { u32 product_id; u64 serial_number; + u16 version_major; + u16 version_minor; + struct gb_host_device *hd; /* The interface needs to boot over unipro */ |