/* wusb_set_dev_addr - set the WUSB device address used by the host @wusbhc: the WUSB HC the device is connect to @wusb_dev: the WUSB device @addr: new device address  */
int wusb_set_dev_addr(struct wusbhc *wusbhc, struct wusb_dev *wusb_dev, u8 addr)
/* wusb_set_dev_addr - set the WUSB device address used by the host @wusbhc: the WUSB HC the device is connect to @wusb_dev: the WUSB device @addr: new device address  */
int wusb_set_dev_addr(struct wusbhc *wusbhc, struct wusb_dev *wusb_dev, u8 addr)
{
	int result;
	wusb_dev->addr = addr;
	result = wusbhc->dev_info_set(wusbhc, wusb_dev);
	if (result < 0)
		dev_err(wusbhc->dev, "device %d: failed to set device "
			"address\n", wusb_dev->port_idx);
	else
		dev_info(wusbhc->dev, "device %d: %s addr %u\n",
			 wusb_dev->port_idx,
			 (addr & WUSB_DEV_ADDR_UNAUTH) ? "unauth" : "auth",
			 wusb_dev->addr);
	return result;
}