Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264945
b: refs/heads/master
c: fba9e54
h: refs/heads/master
i:
  264943: 93ec2fd
v: v3
  • Loading branch information
Heiko Stübner authored and Greg Kroah-Hartman committed Sep 18, 2011
1 parent 49cf202 commit 8e7c094
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e538dfdae85244fd2c4231725d82cc1f1bc4942c
refs/heads/master: fba9e546eac984d46c4a16253344d7297c24d75c
14 changes: 14 additions & 0 deletions trunk/drivers/usb/gadget/s3c-hsudc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1241,10 +1241,24 @@ static int s3c_hsudc_gadget_getframe(struct usb_gadget *gadget)
return s3c_hsudc_read_frameno(to_hsudc(gadget));
}

static int s3c_hsudc_vbus_draw(struct usb_gadget *gadget, unsigned mA)
{
struct s3c_hsudc *hsudc = the_controller;

if (!hsudc)
return -ENODEV;

if (hsudc->transceiver)
return otg_set_power(hsudc->transceiver, mA);

return -EOPNOTSUPP;
}

static struct usb_gadget_ops s3c_hsudc_gadget_ops = {
.get_frame = s3c_hsudc_gadget_getframe,
.start = s3c_hsudc_start,
.stop = s3c_hsudc_stop,
.vbus_draw = s3c_hsudc_vbus_draw,
};

static int s3c_hsudc_probe(struct platform_device *pdev)
Expand Down

0 comments on commit 8e7c094

Please sign in to comment.