/* mos7840_get_reg_sync To set the Uart register by calling usb_fill_control_urb function by passing usb_rcvctrlpipe function as parameter.  */
static int mos7840_get_reg_sync(struct usb_serial_port *port, __u16 reg, __u16 *val)
/* mos7840_get_reg_sync To set the Uart register by calling usb_fill_control_urb function by passing usb_rcvctrlpipe function as parameter.  */
static int mos7840_get_reg_sync(struct usb_serial_port *port, __u16 reg, __u16 *val)
{
	struct usb_device *dev = port->serial->dev;
	int ret = 0;
	ret = usb_control_msg(dev, usb_rcvctrlpipe(dev, 0), MCS_RDREQ,
			      MCS_RD_RTYPE, 0, reg, val, VENDOR_READ_LENGTH,
			      MOS_WDR_TIMEOUT);
	dbg("mos7840_get_reg_sync offset is %x, return val %x", reg, *val);
	*val = (*val) & 0x00ff;
	return ret;
}