diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2009-03-03 23:21:02 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:05 -0400 |
commit | 51f0b8d57af501624ee55e8ca15d09d5bdc2b0dd (patch) | |
tree | 095d574cc559f813ca7d2da2642b7431b661f4bb /include/media | |
parent | 337f9d205972bfe1cb7982384fd0f4caa4af001d (diff) |
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>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/v4l2-ioctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h index b01c044868d0..a8b4c0b678ec 100644 --- a/include/media/v4l2-ioctl.h +++ b/include/media/v4l2-ioctl.h | |||
@@ -267,6 +267,7 @@ struct v4l2_ioctl_ops { | |||
267 | 267 | ||
268 | /* Video standard functions */ | 268 | /* Video standard functions */ |
269 | extern const char *v4l2_norm_to_name(v4l2_std_id id); | 269 | extern const char *v4l2_norm_to_name(v4l2_std_id id); |
270 | extern void v4l2_video_std_frame_period(int id, struct v4l2_fract *frameperiod); | ||
270 | extern int v4l2_video_std_construct(struct v4l2_standard *vs, | 271 | extern int v4l2_video_std_construct(struct v4l2_standard *vs, |
271 | int id, const char *name); | 272 | int id, const char *name); |
272 | /* Prints the ioctl in a human-readable format */ | 273 | /* Prints the ioctl in a human-readable format */ |