]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (10933): zoran: Pass zoran_fh pointers instead of file pointers
authorTrent Piepho <xyzzy@speakeasy.org>
Wed, 11 Mar 2009 02:28:31 +0000 (23:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:17 +0000 (12:43 -0300)
commit3c1463f325d169149a602a350a12b91ed875c8fe
treed475feef3e937b6b0fd3cc56faeb10c5b93ea49c
parent606dde3dc8c799f6f5c31297d068411b04bfd437
V4L/DVB (10933): zoran: Pass zoran_fh pointers instead of file pointers

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.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/zoran/zoran_device.c
drivers/media/video/zoran/zoran_device.h
drivers/media/video/zoran/zoran_driver.c