Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
79fbc209 4ed0d6a9

+25 -3
-3
include/media/v4l2-common.h
··· 84 84 85 85 int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl, 86 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 87 int v4l2_ctrl_query_fill(struct v4l2_queryctrl *qctrl, s32 min, s32 max, s32 step, s32 def); 91 88 92 89 /* ------------------------------------------------------------------------- */
+25
include/media/v4l2-ctrls.h
··· 670 670 */ 671 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 698 /** v4l2_ctrl_g_ctrl() - Helper function to get the control's value from within a driver. 674 699 * @ctrl: The control. 675 700 *