Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208015
b: refs/heads/master
c: 5bd6e8b
h: refs/heads/master
i:
  208013: 90f5f3f
  208011: 92ab299
  208007: 610a960
  207999: 681fdc8
v: v3
  • Loading branch information
Joe Perches authored and Greg Kroah-Hartman committed Aug 10, 2010
1 parent a5e8ba6 commit 1187454
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 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: e53e841d451a2d0da094b8fea4a7f22b296234f6
refs/heads/master: 5bd6e8b3fb787b7337b681aaa601e5c7bdc67c55
4 changes: 2 additions & 2 deletions trunk/drivers/usb/misc/ftdi-elan.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ static int ftdi_elan_open(struct inode *inode, struct file *file)

static int ftdi_elan_release(struct inode *inode, struct file *file)
{
struct usb_ftdi *ftdi = (struct usb_ftdi *)file->private_data;
struct usb_ftdi *ftdi = file->private_data;
if (ftdi == NULL)
return -ENODEV;
up(&ftdi->sw_lock); /* decrement the count on our device */
Expand All @@ -673,7 +673,7 @@ static ssize_t ftdi_elan_read(struct file *file, char __user *buffer,
int bytes_read = 0;
int retry_on_empty = 10;
int retry_on_timeout = 5;
struct usb_ftdi *ftdi = (struct usb_ftdi *)file->private_data;
struct usb_ftdi *ftdi = file->private_data;
if (ftdi->disconnected > 0) {
return -ENODEV;
}
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/usb/misc/iowarrior.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ static ssize_t iowarrior_read(struct file *file, char __user *buffer,
int read_idx;
int offset;

dev = (struct iowarrior *)file->private_data;
dev = file->private_data;

/* verify that the device wasn't unplugged */
if (dev == NULL || !dev->present)
Expand Down Expand Up @@ -349,7 +349,7 @@ static ssize_t iowarrior_write(struct file *file,
char *buf = NULL; /* for IOW24 and IOW56 we need a buffer */
struct urb *int_out_urb = NULL;

dev = (struct iowarrior *)file->private_data;
dev = file->private_data;

mutex_lock(&dev->mutex);
/* verify that the device wasn't unplugged */
Expand Down Expand Up @@ -484,7 +484,7 @@ static long iowarrior_ioctl(struct file *file, unsigned int cmd,
int retval;
int io_res; /* checks for bytes read/written and copy_to/from_user results */

dev = (struct iowarrior *)file->private_data;
dev = file->private_data;
if (dev == NULL) {
return -ENODEV;
}
Expand Down Expand Up @@ -657,7 +657,7 @@ static int iowarrior_release(struct inode *inode, struct file *file)
struct iowarrior *dev;
int retval = 0;

dev = (struct iowarrior *)file->private_data;
dev = file->private_data;
if (dev == NULL) {
return -ENODEV;
}
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/usb/misc/legousbtower.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ static int tower_release (struct inode *inode, struct file *file)

dbg(2, "%s: enter", __func__);

dev = (struct lego_usb_tower *)file->private_data;
dev = file->private_data;

if (dev == NULL) {
dbg(1, "%s: object is NULL", __func__);
Expand Down Expand Up @@ -597,7 +597,7 @@ static ssize_t tower_read (struct file *file, char __user *buffer, size_t count,

dbg(2, "%s: enter, count = %Zd", __func__, count);

dev = (struct lego_usb_tower *)file->private_data;
dev = file->private_data;

/* lock this object */
if (mutex_lock_interruptible(&dev->lock)) {
Expand Down Expand Up @@ -686,7 +686,7 @@ static ssize_t tower_write (struct file *file, const char __user *buffer, size_t

dbg(2, "%s: enter, count = %Zd", __func__, count);

dev = (struct lego_usb_tower *)file->private_data;
dev = file->private_data;

/* lock this object */
if (mutex_lock_interruptible(&dev->lock)) {
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/usb/misc/sisusbvga/sisusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2487,7 +2487,7 @@ sisusb_release(struct inode *inode, struct file *file)
{
struct sisusb_usb_data *sisusb;

if (!(sisusb = (struct sisusb_usb_data *)file->private_data))
if (!(sisusb = file->private_data))
return -ENODEV;

mutex_lock(&sisusb->lock);
Expand Down Expand Up @@ -2519,7 +2519,7 @@ sisusb_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos)
u16 buf16;
u32 buf32, address;

if (!(sisusb = (struct sisusb_usb_data *)file->private_data))
if (!(sisusb = file->private_data))
return -ENODEV;

mutex_lock(&sisusb->lock);
Expand Down Expand Up @@ -2661,7 +2661,7 @@ sisusb_write(struct file *file, const char __user *buffer, size_t count,
u16 buf16;
u32 buf32, address;

if (!(sisusb = (struct sisusb_usb_data *)file->private_data))
if (!(sisusb = file->private_data))
return -ENODEV;

mutex_lock(&sisusb->lock);
Expand Down Expand Up @@ -2804,7 +2804,7 @@ sisusb_lseek(struct file *file, loff_t offset, int orig)
struct sisusb_usb_data *sisusb;
loff_t ret;

if (!(sisusb = (struct sisusb_usb_data *)file->private_data))
if (!(sisusb = file->private_data))
return -ENODEV;

mutex_lock(&sisusb->lock);
Expand Down Expand Up @@ -2969,7 +2969,7 @@ sisusb_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
long retval = 0;
u32 __user *argp = (u32 __user *)arg;

if (!(sisusb = (struct sisusb_usb_data *)file->private_data))
if (!(sisusb = file->private_data))
return -ENODEV;

mutex_lock(&sisusb->lock);
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/usb/misc/usblcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static int lcd_release(struct inode *inode, struct file *file)
{
struct usb_lcd *dev;

dev = (struct usb_lcd *)file->private_data;
dev = file->private_data;
if (dev == NULL)
return -ENODEV;

Expand All @@ -132,7 +132,7 @@ static ssize_t lcd_read(struct file *file, char __user * buffer, size_t count, l
int retval = 0;
int bytes_read;

dev = (struct usb_lcd *)file->private_data;
dev = file->private_data;

/* do a blocking bulk read to get data from the device */
retval = usb_bulk_msg(dev->udev,
Expand All @@ -158,7 +158,7 @@ static long lcd_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
u16 bcdDevice;
char buf[30];

dev = (struct usb_lcd *)file->private_data;
dev = file->private_data;
if (dev == NULL)
return -ENODEV;

Expand Down Expand Up @@ -217,7 +217,7 @@ static ssize_t lcd_write(struct file *file, const char __user * user_buffer, siz
struct urb *urb = NULL;
char *buf = NULL;

dev = (struct usb_lcd *)file->private_data;
dev = file->private_data;

/* verify that we actually have some data to write */
if (count == 0)
Expand Down

0 comments on commit 1187454

Please sign in to comment.