diff options
author | Shimoda, Yoshihiro <yoshihiro.shimoda.uh@renesas.com> | 2012-04-11 18:51:28 +0900 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-05-04 15:53:07 +0300 |
commit | 1ec9c8a299a4a45ab3e08ba594eec82c425d0918 (patch) | |
tree | 7ed99e360f2f0b2ce93228177c706e9af2f91599 /drivers/usb/gadget/r8a66597-udc.h | |
parent | 00c16f9f916eef8999065f72567c7cf08582517c (diff) | |
download | linux-1ec9c8a299a4a45ab3e08ba594eec82c425d0918.tar.gz linux-1ec9c8a299a4a45ab3e08ba594eec82c425d0918.tar.bz2 linux-1ec9c8a299a4a45ab3e08ba594eec82c425d0918.zip |
usb: gadget: r8a66597-udc: add support for set_selfpowered
The previous code always set to USB_DEVICE_SELF_POWERED in GET_STATUS.
So, this patch adds set_selfpowered().
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/r8a66597-udc.h')
-rw-r--r-- | drivers/usb/gadget/r8a66597-udc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/r8a66597-udc.h b/drivers/usb/gadget/r8a66597-udc.h index 25eb13282739..99908c76ccd1 100644 --- a/drivers/usb/gadget/r8a66597-udc.h +++ b/drivers/usb/gadget/r8a66597-udc.h @@ -111,6 +111,7 @@ struct r8a66597 { u16 old_vbus; u16 scount; u16 old_dvsq; + u16 device_status; /* for GET_STATUS */ /* pipe config */ unsigned char bulk; |