mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-29 04:45:05 +00:00
usb: renesas_usbhs: gadget: 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
9239d88fc5
commit
a17fd41206
@ -926,6 +926,8 @@ static int usbhsg_set_selfpowered(struct usb_gadget *gadget, int is_self)
|
||||
else
|
||||
usbhsg_status_clr(gpriv, USBHSG_STATUS_SELF_POWERED);
|
||||
|
||||
gadget->is_selfpowered = (is_self != 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user