diff options
Diffstat (limited to 'drivers/media/video/gspca/pac207.c')
-rw-r--r-- | drivers/media/video/gspca/pac207.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/media/video/gspca/pac207.c b/drivers/media/video/gspca/pac207.c index 57e13e2d550c..4706a823add0 100644 --- a/drivers/media/video/gspca/pac207.c +++ b/drivers/media/video/gspca/pac207.c | |||
@@ -337,8 +337,7 @@ static void pac207_do_auto_gain(struct gspca_dev *gspca_dev) | |||
337 | } | 337 | } |
338 | 338 | ||
339 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, | 339 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, |
340 | struct gspca_frame *frame, | 340 | u8 *data, |
341 | __u8 *data, | ||
342 | int len) | 341 | int len) |
343 | { | 342 | { |
344 | struct sd *sd = (struct sd *) gspca_dev; | 343 | struct sd *sd = (struct sd *) gspca_dev; |
@@ -354,10 +353,10 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, | |||
354 | n -= sizeof pac_sof_marker; | 353 | n -= sizeof pac_sof_marker; |
355 | else | 354 | else |
356 | n = 0; | 355 | n = 0; |
357 | frame = gspca_frame_add(gspca_dev, LAST_PACKET, frame, | 356 | gspca_frame_add(gspca_dev, LAST_PACKET, |
358 | data, n); | 357 | data, n); |
359 | sd->header_read = 0; | 358 | sd->header_read = 0; |
360 | gspca_frame_add(gspca_dev, FIRST_PACKET, frame, NULL, 0); | 359 | gspca_frame_add(gspca_dev, FIRST_PACKET, NULL, 0); |
361 | len -= sof - data; | 360 | len -= sof - data; |
362 | data = sof; | 361 | data = sof; |
363 | } | 362 | } |
@@ -381,7 +380,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, | |||
381 | sd->header_read = 11; | 380 | sd->header_read = 11; |
382 | } | 381 | } |
383 | 382 | ||
384 | gspca_frame_add(gspca_dev, INTER_PACKET, frame, data, len); | 383 | gspca_frame_add(gspca_dev, INTER_PACKET, data, len); |
385 | } | 384 | } |
386 | 385 | ||
387 | static void setbrightness(struct gspca_dev *gspca_dev) | 386 | static void setbrightness(struct gspca_dev *gspca_dev) |