Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265067
b: refs/heads/master
c: 56526c0
h: refs/heads/master
i:
  265065: f7c2292
  265063: 082d45b
v: v3
  • Loading branch information
Randy Dunlap authored and Felipe Balbi committed Oct 13, 2011
1 parent 9b7ff67 commit 17dcac2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8a56e17e18cca2402b390c10b8d7f3cd0f6265b
refs/heads/master: 56526c0b8d752bf243a21722455807518925685f
28 changes: 14 additions & 14 deletions trunk/drivers/usb/gadget/langwell_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1562,6 +1562,20 @@ static ssize_t show_function(struct device *_dev,
static DEVICE_ATTR(function, S_IRUGO, show_function, NULL);


static inline enum usb_device_speed lpm_device_speed(u32 reg)
{
switch (LPM_PSPD(reg)) {
case LPM_SPEED_HIGH:
return USB_SPEED_HIGH;
case LPM_SPEED_FULL:
return USB_SPEED_FULL;
case LPM_SPEED_LOW:
return USB_SPEED_LOW;
default:
return USB_SPEED_UNKNOWN;
}
}

/* device "langwell_udc" sysfs attribute file */
static ssize_t show_langwell_udc(struct device *_dev,
struct device_attribute *attr, char *buf)
Expand Down Expand Up @@ -2634,20 +2648,6 @@ static void handle_trans_complete(struct langwell_udc *dev)
dev_vdbg(&dev->pdev->dev, "<--- %s()\n", __func__);
}

static inline enum usb_device_speed lpm_device_speed(u32 reg)
{
switch (LPM_PSPD(reg)) {
case LPM_SPEED_HIGH:
return USB_SPEED_HIGH;
case LPM_SPEED_FULL:
return USB_SPEED_FULL;
case LPM_SPEED_LOW:
return USB_SPEED_LOW;
default:
return USB_SPEED_UNKNOWN;
}
}

/* port change detect interrupt handler */
static void handle_port_change(struct langwell_udc *dev)
{
Expand Down

0 comments on commit 17dcac2

Please sign in to comment.