diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-11-23 07:39:54 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-11-25 05:24:10 -0500 |
commit | 79fbc209f11b82d8cad37e20da71851fdceecfbd (patch) | |
tree | 09a9dfa3164aa795cbfbc5ba42ffa79d53560afc | |
parent | 4ed0d6a9cf80a4a1f74e18d36a2ee5ef391a8f27 (diff) |
[media] v4l2-ctrl: move function prototypes from common.h to ctrls.h
For some unknown reason several control prototypes where in v4l2-common.c
instead of in v4l2-ctrls.h. Move them and document them.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r-- | include/media/v4l2-common.h | 3 | ||||
-rw-r--r-- | include/media/v4l2-ctrls.h | 25 |
2 files changed, 25 insertions, 3 deletions
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h index 6b4951de7592..c69d91d32e59 100644 --- a/include/media/v4l2-common.h +++ b/include/media/v4l2-common.h | |||
@@ -84,9 +84,6 @@ | |||
84 | 84 | ||
85 | int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl, | 85 | int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl, |
86 | const char * const *menu_items); | 86 | const char * const *menu_items); |
87 | const char *v4l2_ctrl_get_name(u32 id); | ||
88 | const char * const *v4l2_ctrl_get_menu(u32 id); | ||
89 | const s64 *v4l2_ctrl_get_int_menu(u32 id, u32 *len); | ||
90 | int v4l2_ctrl_query_fill(struct v4l2_queryctrl *qctrl, s32 min, s32 max, s32 step, s32 def); | 87 | int v4l2_ctrl_query_fill(struct v4l2_queryctrl *qctrl, s32 min, s32 max, s32 step, s32 def); |
91 | 88 | ||
92 | /* ------------------------------------------------------------------------- */ | 89 | /* ------------------------------------------------------------------------- */ |
diff --git a/include/media/v4l2-ctrls.h b/include/media/v4l2-ctrls.h index b7cd7a665e35..911f3e542834 100644 --- a/include/media/v4l2-ctrls.h +++ b/include/media/v4l2-ctrls.h | |||
@@ -670,6 +670,31 @@ static inline int v4l2_ctrl_modify_range(struct v4l2_ctrl *ctrl, | |||
670 | */ | 670 | */ |
671 | void v4l2_ctrl_notify(struct v4l2_ctrl *ctrl, v4l2_ctrl_notify_fnc notify, void *priv); | 671 | void v4l2_ctrl_notify(struct v4l2_ctrl *ctrl, v4l2_ctrl_notify_fnc notify, void *priv); |
672 | 672 | ||
673 | /** v4l2_ctrl_get_name() - Get the name of the control | ||
674 | * @id: The control ID. | ||
675 | * | ||
676 | * This function returns the name of the given control ID or NULL if it isn't | ||
677 | * a known control. | ||
678 | */ | ||
679 | const char *v4l2_ctrl_get_name(u32 id); | ||
680 | |||
681 | /** v4l2_ctrl_get_menu() - Get the menu string array of the control | ||
682 | * @id: The control ID. | ||
683 | * | ||
684 | * This function returns the NULL-terminated menu string array name of the | ||
685 | * given control ID or NULL if it isn't a known menu control. | ||
686 | */ | ||
687 | const char * const *v4l2_ctrl_get_menu(u32 id); | ||
688 | |||
689 | /** v4l2_ctrl_get_int_menu() - Get the integer menu array of the control | ||
690 | * @id: The control ID. | ||
691 | * @len: The size of the integer array. | ||
692 | * | ||
693 | * This function returns the integer array of the given control ID or NULL if it | ||
694 | * if it isn't a known integer menu control. | ||
695 | */ | ||
696 | const s64 *v4l2_ctrl_get_int_menu(u32 id, u32 *len); | ||
697 | |||
673 | /** v4l2_ctrl_g_ctrl() - Helper function to get the control's value from within a driver. | 698 | /** v4l2_ctrl_g_ctrl() - Helper function to get the control's value from within a driver. |
674 | * @ctrl: The control. | 699 | * @ctrl: The control. |
675 | * | 700 | * |