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

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: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

+12
+12
include/media/v4l2-flash-led-class.h
··· 91 91 struct v4l2_ctrl **ctrls; 92 92 }; 93 93 94 + /** 95 + * v4l2_subdev_to_v4l2_flash - Returns a &struct v4l2_flash from the 96 + * &struct v4l2_subdev embedded on it. 97 + * 98 + * @sd: pointer to &struct v4l2_subdev 99 + */ 94 100 static inline struct v4l2_flash *v4l2_subdev_to_v4l2_flash( 95 101 struct v4l2_subdev *sd) 96 102 { 97 103 return container_of(sd, struct v4l2_flash, sd); 98 104 } 99 105 106 + /** 107 + * v4l2_ctrl_to_v4l2_flash - Returns a &struct v4l2_flash from the 108 + * &struct v4l2_ctrl embedded on it. 109 + * 110 + * @c: pointer to &struct v4l2_ctrl 111 + */ 100 112 static inline struct v4l2_flash *v4l2_ctrl_to_v4l2_flash(struct v4l2_ctrl *c) 101 113 { 102 114 return container_of(c->handler, struct v4l2_flash, hdl);