if (!usbdev) return -1; ret = usb_control_msg(usbdev, usb_sndctrlpipe(usbdev,0), 4, 0x40, (((unsigned int)reg) << 8) | val, 0, NULL, 0, 1000); if (ret) { printk(KERN_DEBUG "uss720: set_1284_register(%u,0x%02x) failed, status 0x%x\n", (unsigned int)reg, (unsigned int)val, ret); } else { #if 0 printk(KERN_DEBUG "uss720: set_1284_register(%u,0x%02x)\n", (unsigned int)reg, (unsigned int)val); #endif
if (!pp) return -EIO; priv = pp->private_data; rq = submit_async_request(priv, 4, 0x40, (((unsigned int)reg) << 8) | val, 0, mem_flags); if (!rq) { err("set_1284_register(%u,%u) failed", (unsigned int)reg, (unsigned int)val); return -EIO;
static int set_1284_register(struct parport *pp, unsigned char reg, unsigned char val){	struct parport_uss720_private *priv = pp->private_data;	struct usb_device *usbdev = priv->usbdev;	int ret;	if (!usbdev)		return -1;	ret = usb_control_msg(usbdev, usb_sndctrlpipe(usbdev,0), 4, 0x40, (((unsigned int)reg) << 8) | val, 0, NULL, 0, 1000);	if (ret) {		printk(KERN_DEBUG "uss720: set_1284_register(%u,0x%02x) failed, status 0x%x\n", 		       (unsigned int)reg, (unsigned int)val, ret);	} else {#if 0		printk(KERN_DEBUG "uss720: set_1284_register(%u,0x%02x)\n", 		       (unsigned int)reg, (unsigned int)val);#endif	}	return ret;}