diff options
Diffstat (limited to 'drivers/media/video/gspca/mr97310a.c')
-rw-r--r-- | drivers/media/video/gspca/mr97310a.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/media/video/gspca/mr97310a.c b/drivers/media/video/gspca/mr97310a.c index ffb5e6d62c0b..126d968dd9e0 100644 --- a/drivers/media/video/gspca/mr97310a.c +++ b/drivers/media/video/gspca/mr97310a.c | |||
@@ -1030,9 +1030,8 @@ static int sd_getmin_clockdiv(struct gspca_dev *gspca_dev, __s32 *val) | |||
1030 | #include "pac_common.h" | 1030 | #include "pac_common.h" |
1031 | 1031 | ||
1032 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, | 1032 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, |
1033 | struct gspca_frame *frame, /* target */ | 1033 | u8 *data, /* isoc packet */ |
1034 | __u8 *data, /* isoc packet */ | 1034 | int len) /* iso packet length */ |
1035 | int len) /* iso packet length */ | ||
1036 | { | 1035 | { |
1037 | struct sd *sd = (struct sd *) gspca_dev; | 1036 | struct sd *sd = (struct sd *) gspca_dev; |
1038 | unsigned char *sof; | 1037 | unsigned char *sof; |
@@ -1047,15 +1046,15 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, | |||
1047 | n -= sizeof pac_sof_marker; | 1046 | n -= sizeof pac_sof_marker; |
1048 | else | 1047 | else |
1049 | n = 0; | 1048 | n = 0; |
1050 | frame = gspca_frame_add(gspca_dev, LAST_PACKET, frame, | 1049 | gspca_frame_add(gspca_dev, LAST_PACKET, |
1051 | data, n); | 1050 | data, n); |
1052 | /* Start next frame. */ | 1051 | /* Start next frame. */ |
1053 | gspca_frame_add(gspca_dev, FIRST_PACKET, frame, | 1052 | gspca_frame_add(gspca_dev, FIRST_PACKET, |
1054 | pac_sof_marker, sizeof pac_sof_marker); | 1053 | pac_sof_marker, sizeof pac_sof_marker); |
1055 | len -= sof - data; | 1054 | len -= sof - data; |
1056 | data = sof; | 1055 | data = sof; |
1057 | } | 1056 | } |
1058 | gspca_frame_add(gspca_dev, INTER_PACKET, frame, data, len); | 1057 | gspca_frame_add(gspca_dev, INTER_PACKET, data, len); |
1059 | } | 1058 | } |
1060 | 1059 | ||
1061 | /* sub-driver description */ | 1060 | /* sub-driver description */ |