mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue