summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/mr97310a.c
diff options
context:
space:
mode:
authorMarton Nemeth <nm127@freemail.hu>2009-11-02 08:05:51 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 18:41:15 -0200
commita6b69e409a41144c24dcbecdc174a5c847631de2 (patch)
treee92a3b7fdef8fe4e453645ce84ff9753194c4951 /drivers/media/video/gspca/mr97310a.c
parentc86c82b74f800486ede57fdd5a4fa77d86368861 (diff)
downloadtalos-obmc-linux-a6b69e409a41144c24dcbecdc174a5c847631de2.tar.gz
talos-obmc-linux-a6b69e409a41144c24dcbecdc174a5c847631de2.zip
V4L/DVB (13298): gspca - pac207/pac7311/mr97310a: Simplify pac_find_sof.
Remove struct sd dependency from pac_find_sof() function implementation. This step prepares separation of pac7302 and pac7311 specific parts of struct sd. Signed-off-by: Marton Nemeth <nm127@freemail.hu> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/mr97310a.c')
-rw-r--r--drivers/media/video/gspca/mr97310a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/mr97310a.c b/drivers/media/video/gspca/mr97310a.c
index 442bf1ec5eda..ffb5e6d62c0b 100644
--- a/drivers/media/video/gspca/mr97310a.c
+++ b/drivers/media/video/gspca/mr97310a.c
@@ -1034,9 +1034,10 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
__u8 *data, /* isoc packet */
int len) /* iso packet length */
{
+ struct sd *sd = (struct sd *) gspca_dev;
unsigned char *sof;
- sof = pac_find_sof(gspca_dev, data, len);
+ sof = pac_find_sof(&sd->sof_read, data, len);
if (sof) {
int n;
OpenPOWER on IntegriCloud