summaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-ctrls.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-22 15:58:03 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-23 13:04:21 +0200
commit6d85d7d7eb86f0f16f9da94d5999ed4d55396d2e (patch)
tree39b7ca26e1df754fd8e0efa6838a1656bc3c4ea6 /include/media/v4l2-ctrls.h
parent[media] doc-rst: reorganize the kAPI v4l2 chapters (diff)
downloadlinux-6d85d7d7eb86f0f16f9da94d5999ed4d55396d2e.tar.xz
linux-6d85d7d7eb86f0f16f9da94d5999ed4d55396d2e.zip
[media] doc-rst: Fix some typedef ugly warnings
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>
Diffstat (limited to 'include/media/v4l2-ctrls.h')
-rw-r--r--include/media/v4l2-ctrls.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/media/v4l2-ctrls.h b/include/media/v4l2-ctrls.h
index 8b59336b2217..d6f63406b885 100644
--- a/include/media/v4l2-ctrls.h
+++ b/include/media/v4l2-ctrls.h
@@ -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.