Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343836
b: refs/heads/master
c: 9825f37
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Oct 28, 2012
1 parent dc37121 commit 55b75f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: ede4c3a5a6c0d4490e39a1695570c7a6e9cf7b33
refs/heads/master: 9825f376533c8550dc2f8d78a5a9af6612490a1a
6 changes: 3 additions & 3 deletions trunk/drivers/media/usb/gspca/jeilinj.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ static void jlj_write2(struct gspca_dev *gspca_dev, unsigned char *command)
}

/* Responses are one byte only */
static void jlj_read1(struct gspca_dev *gspca_dev, unsigned char response)
static void jlj_read1(struct gspca_dev *gspca_dev, unsigned char *response)
{
int retval;

Expand All @@ -123,7 +123,7 @@ static void jlj_read1(struct gspca_dev *gspca_dev, unsigned char response)
retval = usb_bulk_msg(gspca_dev->dev,
usb_rcvbulkpipe(gspca_dev->dev, 0x84),
gspca_dev->usb_buf, 1, NULL, 500);
response = gspca_dev->usb_buf[0];
*response = gspca_dev->usb_buf[0];
if (retval < 0) {
pr_err("read command [%02x] error %d\n",
gspca_dev->usb_buf[0], retval);
Expand Down Expand Up @@ -260,7 +260,7 @@ static int jlj_start(struct gspca_dev *gspca_dev)
if (start_commands[i].delay)
msleep(start_commands[i].delay);
if (start_commands[i].ack_wanted)
jlj_read1(gspca_dev, response);
jlj_read1(gspca_dev, &response);
}
setcamquality(gspca_dev, v4l2_ctrl_g_ctrl(sd->jpegqual));
msleep(2);
Expand Down

0 comments on commit 55b75f0

Please sign in to comment.