summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-08-11 07:36:14 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-08-11 19:34:34 -0700
commit3ea959e3911e0c9ae49eb855d7b4f744349eb977 (patch)
tree0b59226dfe8a1bdd6a9fddc08b3f46bdeb49903d /drivers
parenta404504a8651250b2632cf62356de6c77a923430 (diff)
downloadop-kernel-dev-3ea959e3911e0c9ae49eb855d7b4f744349eb977.zip
op-kernel-dev-3ea959e3911e0c9ae49eb855d7b4f744349eb977.tar.gz
greybus: svc: preserve major/minor of protocol supported by SVC
These weren't preserved earlier, save them in the connection structure instead of creating its own fields.. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/greybus/svc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/greybus/svc.c b/drivers/staging/greybus/svc.c
index 17ffb13..025b2ba 100644
--- a/drivers/staging/greybus/svc.c
+++ b/drivers/staging/greybus/svc.c
@@ -11,8 +11,6 @@
struct gb_svc {
struct gb_connection *connection;
- u8 version_major;
- u8 version_minor;
};
static struct ida greybus_svc_device_id_map;
@@ -163,6 +161,9 @@ static int gb_svc_version_request(struct gb_operation *op)
return -ENOTSUPP;
}
+ connection->module_major = version->major;
+ connection->module_minor = version->minor;
+
if (!gb_operation_response_alloc(op, sizeof(*version), GFP_KERNEL)) {
dev_err(dev, "%s: error allocating response\n",
__func__);
OpenPOWER on IntegriCloud