Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ea959e3 authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman
Browse files

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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent a404504a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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__);