struct gb_loopback {
struct gb_connection *connection;
- u8 version_major;
- u8 version_minor;
struct kfifo kfifo;
struct mutex mutex;
#define GB_LOOPBACK_MS_WAIT_MAX 1000
-/* Define get_version() routine */
-define_get_version(gb_loopback, LOOPBACK);
-
/* interface sysfs attributes */
#define gb_loopback_ro_attr(field) \
static ssize_t field##_show(struct device *dev, \
goto out_sysfs;
}
- /* Check the version */
- retval = get_version(gb);
- if (retval)
- goto out_minor;
-
/* Calculate maximum payload */
gb->size_max = gb_operation_get_payload_size_max(connection);
if (gb->size_max <= sizeof(struct gb_loopback_transfer_request)) {