/* Set the transport function based on the device type  */
static int usbat_set_transport(struct us_data *us, struct usbat_info *info, int devicetype)
/* Set the transport function based on the device type  */
static int usbat_set_transport(struct us_data *us, struct usbat_info *info, int devicetype)
{
	if (!info->devicetype)
		info->devicetype = devicetype;
	if (!info->devicetype)
		usbat_identify_device(us, info);
	switch (info->devicetype) {
	default:
		return USB_STOR_TRANSPORT_ERROR;
	case  USBAT_DEV_HP8200:
		us->transport = usbat_hp8200e_transport;
		break;
	case USBAT_DEV_FLASH:
		us->transport = usbat_flash_transport;
		break;
	}
	return 0;
}