Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 716b8764 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

media: v4l2-flash-led-class.h: add kernel-doc to two helper funcs



There are two helper functions at v4l2-flash-led-class.h
that aren't documented.

Document them.

Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 69b925c5
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -91,12 +91,24 @@ struct v4l2_flash {
	struct v4l2_ctrl **ctrls;
};

/**
 * v4l2_subdev_to_v4l2_flash - Returns a &struct v4l2_flash from the
 * &struct v4l2_subdev embedded on it.
 *
 * @sd: pointer to &struct v4l2_subdev
 */
static inline struct v4l2_flash *v4l2_subdev_to_v4l2_flash(
							struct v4l2_subdev *sd)
{
	return container_of(sd, struct v4l2_flash, sd);
}

/**
 * v4l2_ctrl_to_v4l2_flash - Returns a &struct v4l2_flash from the
 * &struct v4l2_ctrl embedded on it.
 *
 * @c: pointer to &struct v4l2_ctrl
 */
static inline struct v4l2_flash *v4l2_ctrl_to_v4l2_flash(struct v4l2_ctrl *c)
{
	return container_of(c->handler, struct v4l2_flash, hdl);