greybus: svc: fix version response
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 15 Sep 2015 08:48:00 +0000 (10:48 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Sep 2015 13:14:43 +0000 (06:14 -0700)
The SVC-protocol driver currently accepts the version offered by the
SVC, but still responded with a hard-coded version.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/svc.c

index 5a130e59f0750c4981952c920cd64afae25c3b59..075d81d20cb838ebd200e59f808f1f9c3b6f959a 100644 (file)
@@ -278,8 +278,9 @@ static int gb_svc_version_request(struct gb_operation *op)
        }
 
        version = op->response->payload;
-       version->major = GB_SVC_VERSION_MAJOR;
-       version->minor = GB_SVC_VERSION_MINOR;
+       version->major = connection->module_major;
+       version->minor = connection->module_minor;
+
        return 0;
 }