diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-01-28 16:32:28 +0800 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-29 10:32:51 -0600 |
commit | a17fd41206a6d3efc565d8319405692325874884 (patch) | |
tree | 2ca4ed3b7b9b7e05a918b7af794b85f394b26d25 /drivers/usb/renesas_usbhs | |
parent | 9239d88fc5e58a2a72bc949362f999aac9bffb29 (diff) |
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>
Diffstat (limited to 'drivers/usb/renesas_usbhs')
-rw-r--r-- | drivers/usb/renesas_usbhs/mod_gadget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index 8697e6efcabf..e0384af77e56 100644 --- a/drivers/usb/renesas_usbhs/mod_gadget.c +++ b/drivers/usb/renesas_usbhs/mod_gadget.c @@ -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; } |