summaryrefslogtreecommitdiff
path: root/drivers/usb/renesas_usbhs
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2015-01-28 11:32:28 +0300
committerFelipe Balbi <balbi@ti.com>2015-01-29 19:32:51 +0300
commita17fd41206a6d3efc565d8319405692325874884 (patch)
tree2ca4ed3b7b9b7e05a918b7af794b85f394b26d25 /drivers/usb/renesas_usbhs
parent9239d88fc5e58a2a72bc949362f999aac9bffb29 (diff)
downloadlinux-a17fd41206a6d3efc565d8319405692325874884.tar.xz
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.c2
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;
}