Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124479
b: refs/heads/master
c: 619a4d5
h: refs/heads/master
i:
  124477: b57f872
  124475: 6edac38
  124471: 235c61e
  124463: 9074d0e
  124447: 29ca304
  124415: 14a62d0
v: v3
  • Loading branch information
Erik Andrén authored and Mauro Carvalho Chehab committed Dec 30, 2008
1 parent 598f2f2 commit 2d3701b
Show file tree
Hide file tree
Showing 3 changed files with 4 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: 84833a3f4e22907379462e8a7c18970db70d21d8
refs/heads/master: 619a4d5ca127e80583fb9d269681164363be983e
1 change: 0 additions & 1 deletion trunk/drivers/media/video/gspca/m5602/m5602_bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ static const unsigned char sensor_urb_skeleton[] = {
0x13, M5602_XB_I2C_CTRL, 0x81, 0x11
};

/* m5602 device descriptor, currently it just wraps the m5602_camera struct */
struct sd {
struct gspca_dev gspca_dev;

Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/media/video/gspca/m5602/m5602_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,12 @@ static int m5602_start_transfer(struct gspca_dev *gspca_dev)

/* Send start command to the camera */
const u8 buffer[4] = {0x13, 0xf9, 0x0f, 0x01};

memcpy(buf, buffer, sizeof(buffer));
err = usb_control_msg(gspca_dev->dev,
usb_sndctrlpipe(gspca_dev->dev, 0),
0x04, 0x40, 0x19, 0x0000, buf,
4, M5602_URB_MSG_TIMEOUT);
sizeof(buffer), M5602_URB_MSG_TIMEOUT);

PDEBUG(D_STREAM, "Transfer started");
return (err < 0) ? err : 0;
Expand Down Expand Up @@ -284,6 +285,7 @@ static int __init mod_m5602_init(void)
PDEBUG(D_PROBE, "registered");
return 0;
}

static void __exit mod_m5602_exit(void)
{
usb_deregister(&sd_driver);
Expand Down

0 comments on commit 2d3701b

Please sign in to comment.