diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-14 13:49:40 +0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-23 00:01:10 +0400 |
commit | 3b6456d2c3fc9d0c4ec1db5d6594f40098ff0a6f (patch) | |
tree | 9b4c29a45093004f734094f6246f5b4f543db936 /drivers/media/video/zoran/zoran.h | |
parent | 3b8b487114c95ef6db5fef708ef69bfb5209014e (diff) | |
download | op-kernel-dev-3b6456d2c3fc9d0c4ec1db5d6594f40098ff0a6f.zip op-kernel-dev-3b6456d2c3fc9d0c4ec1db5d6594f40098ff0a6f.tar.gz |
zoran: don't bother with struct file * in zoran_map
all we need it for is file->private_data, which is assign-once, already
assigned by that point and, incidentally, its value is already in use
by zoran ->mmap() anyway. So just store that pointer instead...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/media/video/zoran/zoran.h')
-rw-r--r-- | drivers/media/video/zoran/zoran.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/zoran/zoran.h b/drivers/media/video/zoran/zoran.h index d7166af..ca2754a 100644 --- a/drivers/media/video/zoran/zoran.h +++ b/drivers/media/video/zoran/zoran.h @@ -172,8 +172,10 @@ struct zoran_jpg_settings { struct v4l2_jpegcompression jpg_comp; /* JPEG-specific capture settings */ }; +struct zoran_fh; + struct zoran_mapping { - struct file *file; + struct zoran_fh *fh; int count; }; |