Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174946
b: refs/heads/master
c: 7f4e985
h: refs/heads/master
v: v3
  • Loading branch information
Vikram Pandita authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 0ce9015 commit 236b1b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: ed7487c2c28560a6b06900851ab63ebca1aea444
refs/heads/master: 7f4e985448e82fe4a1cc0ae4fcecaf7e0301c07b
7 changes: 5 additions & 2 deletions trunk/drivers/usb/misc/usbtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,9 @@ static struct urb *simple_alloc_urb (
}

static unsigned pattern = 0;
module_param (pattern, uint, S_IRUGO);
MODULE_PARM_DESC(pattern, "i/o pattern (0 == zeroes)");
static unsigned mod_pattern;
module_param_named(pattern, mod_pattern, uint, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(mod_pattern, "i/o pattern (0 == zeroes)");

static inline void simple_fill_buf (struct urb *urb)
{
Expand Down Expand Up @@ -1567,6 +1568,8 @@ usbtest_ioctl (struct usb_interface *intf, unsigned int code, void *buf)

// FIXME USBDEVFS_CONNECTINFO doesn't say how fast the device is.

pattern = mod_pattern;

if (code != USBTEST_REQUEST)
return -EOPNOTSUPP;

Expand Down

0 comments on commit 236b1b4

Please sign in to comment.