[saa7146] v4l 32bit ioctl compat patch

From: Martin Zwickel
Date: Thu Feb 19 2009 - 06:00:47 EST


Hi all,

what do you think about such a patch to get 32bit ioctl compat working for
saa7146 driver?

Thanks and regards,
Martin

--
MyExcuse:
static from nylon underwear

Martin Zwickel <martin.zwickel@xxxxxxxxxxxxxx>
Research & Development
diff -uprN -X linux-2.6.23.1-vanilla/Documentation/dontdiff -x probe.c -x vdso.lds linux-2.6.23.1-vanilla/drivers/media/common/saa7146_fops.c linux-2.6.23.1/drivers/media/common/saa7146_fops.c
--- linux-2.6.23.1-vanilla/drivers/media/common/saa7146_fops.c 2007-10-12 18:43:44.000000000 +0200
+++ linux-2.6.23.1/drivers/media/common/saa7146_fops.c 2007-11-27 14:03:57.000000000 +0100
@@ -425,6 +425,7 @@ static const struct file_operations vide
.poll = fops_poll,
.mmap = fops_mmap,
.ioctl = fops_ioctl,
+ .compat_ioctl = v4l_compat_ioctl32,
.llseek = no_llseek,
};

Attachment: signature.asc
Description: PGP signature