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>
struct gb_svc {
struct gb_connection *connection;
- u8 version_major;
- u8 version_minor;
};
static struct ida greybus_svc_device_id_map;
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__);