diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-01-28 16:32:30 +0800 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-29 10:33:01 -0600 |
commit | 5d9cb6afc496b20b2d2ef71e4dd3adf50841f8c8 (patch) | |
tree | fb5428e494a3557d3893a6bb05bfe17c8c7458f5 /drivers/usb/gadget/udc/dummy_hcd.c | |
parent | 4605437e335bf1cf3b30c1261a6a146dbd830188 (diff) | |
download | op-kernel-dev-5d9cb6afc496b20b2d2ef71e4dd3adf50841f8c8.zip op-kernel-dev-5d9cb6afc496b20b2d2ef71e4dd3adf50841f8c8.tar.gz |
usb: gadget: dummy_hcd: 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/gadget/udc/dummy_hcd.c')
-rw-r--r-- | drivers/usb/gadget/udc/dummy_hcd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc/dummy_hcd.c index 270c1ec..8dda484 100644 --- a/drivers/usb/gadget/udc/dummy_hcd.c +++ b/drivers/usb/gadget/udc/dummy_hcd.c @@ -802,6 +802,7 @@ static int dummy_set_selfpowered(struct usb_gadget *_gadget, int value) { struct dummy *dum; + _gadget->is_selfpowered = (value != 0); dum = gadget_to_dummy_hcd(_gadget)->dum; if (value) dum->devstatus |= (1 << USB_DEVICE_SELF_POWERED); |