Commit 59832931 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

greybus: svc: fix version response



The SVC-protocol driver currently accepts the version offered by the
SVC, but still responded with a hard-coded version.

Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent c09db182
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
}