/* mos7840_set_reg_sync To set the Control register by calling usb_fill_control_urb function by passing usb_sndctrlpipe function as parameter.  */
static int mos7840_set_reg_sync(struct usb_serial_port *port, __u16 reg, __u16 val)
/* mos7840_set_reg_sync To set the Control register by calling usb_fill_control_urb function by passing usb_sndctrlpipe function as parameter.  */
static int mos7840_set_reg_sync(struct usb_serial_port *port, __u16 reg, __u16 val)
{
	struct usb_device *dev = port->serial->dev;
	val = val & 0x00ff;
	dbg("mos7840_set_reg_sync offset is %x, value %x", reg, val);
	return usb_control_msg(dev, usb_sndctrlpipe(dev, 0), MCS_WRREQ,
			       MCS_WR_RTYPE, val, reg, NULL, 0,
			       MOS_WDR_TIMEOUT);
}