Message ID | 20190823123737.7774-6-ribalda@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v3,1/7] media: add V4L2_CID_UNIT_CELL_SIZE control | expand |
Hi Ricardo, On Fri, Aug 23, 2019 at 02:37:36PM +0200, Ricardo Ribalda Delgado wrote: > Helper for creating area controls. > > Signed-off-by: Ricardo Ribalda Delgado <ribalda@kernel.org> With this squashed on 5/7 or separated if we want documentation changes to get in separately Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Thanks j > --- > Documentation/media/kapi/v4l2-controls.rst | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/Documentation/media/kapi/v4l2-controls.rst b/Documentation/media/kapi/v4l2-controls.rst > index ebe2a55908be..656e9428f6a6 100644 > --- a/Documentation/media/kapi/v4l2-controls.rst > +++ b/Documentation/media/kapi/v4l2-controls.rst > @@ -149,6 +149,15 @@ Integer menu controls with a driver specific menu can be added by calling > const struct v4l2_ctrl_ops *ops, > u32 id, s32 max, s32 def, const s64 *qmenu_int); > > +Area controls can be added by calling > +:c:func:`v4l2_ctrl_new_area`: > + > +.. code-block:: c > + > + struct v4l2_ctrl *v4l2_ctrl_new_area(struct v4l2_ctrl_handler *hdl, > + const struct v4l2_ctrl_ops *ops, > + u32 id, const struct v4l2_area *area); > + > These functions are typically called right after the > :c:func:`v4l2_ctrl_handler_init`: > > -- > 2.23.0.rc1 >
diff --git a/Documentation/media/kapi/v4l2-controls.rst b/Documentation/media/kapi/v4l2-controls.rst index ebe2a55908be..656e9428f6a6 100644 --- a/Documentation/media/kapi/v4l2-controls.rst +++ b/Documentation/media/kapi/v4l2-controls.rst @@ -149,6 +149,15 @@ Integer menu controls with a driver specific menu can be added by calling const struct v4l2_ctrl_ops *ops, u32 id, s32 max, s32 def, const s64 *qmenu_int); +Area controls can be added by calling +:c:func:`v4l2_ctrl_new_area`: + +.. code-block:: c + + struct v4l2_ctrl *v4l2_ctrl_new_area(struct v4l2_ctrl_handler *hdl, + const struct v4l2_ctrl_ops *ops, + u32 id, const struct v4l2_area *area); + These functions are typically called right after the :c:func:`v4l2_ctrl_handler_init`:
Helper for creating area controls. Signed-off-by: Ricardo Ribalda Delgado <ribalda@kernel.org> --- Documentation/media/kapi/v4l2-controls.rst | 9 +++++++++ 1 file changed, 9 insertions(+)