]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
[media] doc-rst: Fix some typedef ugly warnings
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 22 Jul 2016 13:58:03 +0000 (10:58 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 23 Jul 2016 11:04:21 +0000 (08:04 -0300)
Sphinx can't handle well typedefs. Change two typedef
occurrences, in order to cleanup some of such warnings.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
include/media/v4l2-ctrls.h
include/media/v4l2-dv-timings.h

index 8b59336b2217698de8f32b697cbb456deb423418..d6f63406b885cd5154c1ee055e99b55f095e452e 100644 (file)
@@ -534,6 +534,8 @@ struct v4l2_ctrl *v4l2_ctrl_new_int_menu(struct v4l2_ctrl_handler *hdl,
                        const struct v4l2_ctrl_ops *ops,
                        u32 id, u8 max, u8 def, const s64 *qmenu_int);
 
+typedef bool (*v4l2_ctrl_filter)(const struct v4l2_ctrl *ctrl);
+
 /**
  * v4l2_ctrl_add_handler() - Add all controls from handler @add to
  * handler @hdl.
@@ -550,7 +552,7 @@ struct v4l2_ctrl *v4l2_ctrl_new_int_menu(struct v4l2_ctrl_handler *hdl,
  */
 int v4l2_ctrl_add_handler(struct v4l2_ctrl_handler *hdl,
                          struct v4l2_ctrl_handler *add,
-                         bool (*filter)(const struct v4l2_ctrl *ctrl));
+                         v4l2_ctrl_filter filter);
 
 /**
  * v4l2_ctrl_radio_filter() - Standard filter for radio controls.
index 1113c8874c26be127eb51dfccd43642ceac8c4e4..65caadf13eec869e99c37999f9a2874307dc60fe 100644 (file)
@@ -28,7 +28,7 @@
  */
 extern const struct v4l2_dv_timings v4l2_dv_timings_presets[];
 
-/**
+/*
  * v4l2_check_dv_timings_fnc - timings check callback
  *
  * @t: the v4l2_dv_timings struct.