Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330722
b: refs/heads/master
c: 8ff63de
h: refs/heads/master
v: v3
  • Loading branch information
Devin Heitmueller authored and Mauro Carvalho Chehab committed Aug 9, 2012
1 parent bb5dc6f commit 20039b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 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: faaf01b2f6be0378c0c6084f0257b150dc014152
refs/heads/master: 8ff63de690d74bec848caab64a86bd53c797365c
14 changes: 6 additions & 8 deletions trunk/drivers/media/video/au0828/au0828-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ MODULE_PARM_DESC(disable_usb_speed_check,
#define _BULKPIPESIZE 0xffff

static int send_control_msg(struct au0828_dev *dev, u16 request, u32 value,
u16 index, unsigned char *cp, u16 size);
u16 index);
static int recv_control_msg(struct au0828_dev *dev, u16 request, u32 value,
u16 index, unsigned char *cp, u16 size);

Expand All @@ -64,8 +64,7 @@ u32 au0828_readreg(struct au0828_dev *dev, u16 reg)
u32 au0828_writereg(struct au0828_dev *dev, u16 reg, u32 val)
{
dprintk(8, "%s(0x%04x, 0x%02x)\n", __func__, reg, val);
return send_control_msg(dev, CMD_REQUEST_OUT, val, reg,
dev->ctrlmsg, 0);
return send_control_msg(dev, CMD_REQUEST_OUT, val, reg);
}

static void cmd_msg_dump(struct au0828_dev *dev)
Expand All @@ -87,10 +86,10 @@ static void cmd_msg_dump(struct au0828_dev *dev)
}

static int send_control_msg(struct au0828_dev *dev, u16 request, u32 value,
u16 index, unsigned char *cp, u16 size)
u16 index)
{
int status = -ENODEV;
mutex_lock(&dev->mutex);

if (dev->usbdev) {

/* cp must be memory that has been allocated by kmalloc */
Expand All @@ -99,8 +98,7 @@ static int send_control_msg(struct au0828_dev *dev, u16 request, u32 value,
request,
USB_DIR_OUT | USB_TYPE_VENDOR |
USB_RECIP_DEVICE,
value, index,
cp, size, 1000);
value, index, NULL, 0, 1000);

status = min(status, 0);

Expand All @@ -110,7 +108,7 @@ static int send_control_msg(struct au0828_dev *dev, u16 request, u32 value,
}

}
mutex_unlock(&dev->mutex);

return status;
}

Expand Down

0 comments on commit 20039b7

Please sign in to comment.