V4L/DVB (10813): v4l2: New function v4l2_video_std_frame_period
authorTrent Piepho <xyzzy@speakeasy.org>
Wed, 4 Mar 2009 04:21:02 +0000 (01:21 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:05 +0000 (12:43 -0300)
commit51f0b8d57af501624ee55e8ca15d09d5bdc2b0dd
tree095d574cc559f813ca7d2da2642b7431b661f4bb
parent337f9d205972bfe1cb7982384fd0f4caa4af001d
V4L/DVB (10813): v4l2: New function v4l2_video_std_frame_period

Some code was calling v4l2_video_std_construct() when all it cared about
was the frame period.  So make a function that just returns that and have
v4l2_video_std_construct() use it.

At this point there are no users of v4l2_video_std_construct() left outside
of v4l2-ioctl, so it could be un-exported and made static.

Change v4l2_video_std_construct() so that it doesn't zero out the struct
v4l2_standard passed in.  It's already been zeroed out in the common ioctl
code.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/bt8xx/bttv-driver.c
drivers/media/video/v4l2-ioctl.c
include/media/v4l2-ioctl.h