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

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

greybus: connection: Save major/minor supported by module



Save major/minor number supported by the module inside connection
structure, as this can be used later.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 2b11a45d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -34,6 +34,8 @@ struct gb_connection {
	u8				protocol_id;
	u8				major;
	u8				minor;
	u8				module_major;
	u8				module_minor;

	spinlock_t			lock;
	enum gb_connection_state	state;
+3 −0
Original line number Diff line number Diff line
@@ -182,6 +182,9 @@ int gb_protocol_get_version(struct gb_connection *connection, int type,
		return -ENOTSUPP;
	}

	connection->module_major = response->major;
	connection->module_minor = response->minor;

	dev_dbg(&connection->dev, "version_major = %u version_minor = %u\n",
		response->major, response->minor);