Save major/minor number supported by the module inside connection
structure, as this can be used later.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
        u8                              protocol_id;
        u8                              major;
        u8                              minor;
+       u8                              module_major;
+       u8                              module_minor;
 
        spinlock_t                      lock;
        enum gb_connection_state        state;
 
                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);