diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2009-03-10 19:28:31 -0700 |
---|---|---|
committer | Trent Piepho <xyzzy@speakeasy.org> | 2009-03-10 19:28:31 -0700 |
commit | f542aede4d7c37a87c603e57f282b647c9550861 (patch) | |
tree | 78244437734bc381c2d946e5d638e34a401eb709 /linux/drivers/media/video/zoran/zoran_device.c | |
parent | 8fb8df7555475d10ef8154ef9aa81835c093c1b6 (diff) | |
download | mediapointer-dvb-s2-f542aede4d7c37a87c603e57f282b647c9550861.tar.gz mediapointer-dvb-s2-f542aede4d7c37a87c603e57f282b647c9550861.tar.bz2 |
zoran: Pass zoran_fh pointers instead of file pointers
From: Trent Piepho <xyzzy@speakeasy.org>
Many functions had a struct file pointer argument, but all they wants is
the struct zoran_fh pointer from the file's private data. Since every
caller of those functions already has the zoran_fh, just pass the that
instead. This saves a dereference in each function change.
While I'm at it, change the code formatting of affected functions to be
kernel standard style.
Priority: normal
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/drivers/media/video/zoran/zoran_device.c')
-rw-r--r-- | linux/drivers/media/video/zoran/zoran_device.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/linux/drivers/media/video/zoran/zoran_device.c b/linux/drivers/media/video/zoran/zoran_device.c index 06f2c9a34..9d93dd8c0 100644 --- a/linux/drivers/media/video/zoran/zoran_device.c +++ b/linux/drivers/media/video/zoran/zoran_device.c @@ -536,12 +536,8 @@ zr36057_overlay (struct zoran *zr, * and the maximum window size is BUZ_MAX_WIDTH * BUZ_MAX_HEIGHT pixels. */ -void -write_overlay_mask (struct file *file, - struct v4l2_clip *vp, - int count) +void write_overlay_mask(struct zoran_fh *fh, struct v4l2_clip *vp, int count) { - struct zoran_fh *fh = file->private_data; struct zoran *zr = fh->zr; unsigned mask_line_size = (BUZ_MAX_WIDTH + 31) / 32; u32 *mask; |