forked from Minki/linux
usb: gadget: pch_udc: set value for common is_selfpowered
Set value for common is_selfpowered. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
d618c368ef
commit
716013b0ab
@ -1161,6 +1161,7 @@ static int pch_udc_pcd_selfpowered(struct usb_gadget *gadget, int value)
|
||||
|
||||
if (!gadget)
|
||||
return -EINVAL;
|
||||
gadget->is_selfpowered = (value != 0);
|
||||
dev = container_of(gadget, struct pch_udc_dev, gadget);
|
||||
if (value)
|
||||
pch_udc_set_selfpowered(dev);
|
||||
|
Loading…
Reference in New Issue
Block a user