Skip to content

Commit d138091

Browse files
lucaceresolimchehab
authored andcommitted
media: v4l2-subdev: document controls need _FL_HAS_DEVNODE
Control events can be subscribed and received by the user. Therefore drivers that support controls must expose the V4L2_SUBDEV_FL_HAS_EVENTS flag. [As discussed in https://lkml.org/lkml/2018/11/27/637] Reported-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1 parent be7e3c3 commit d138091

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎include/media/v4l2-subdev.h‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,11 @@ struct v4l2_subdev_internal_ops {
776776
#define V4L2_SUBDEV_FL_IS_SPI (1U << 1)
777777
/* Set this flag if this subdev needs a device node. */
778778
#define V4L2_SUBDEV_FL_HAS_DEVNODE (1U << 2)
779-
/* Set this flag if this subdev generates events. */
779+
/*
780+
* Set this flag if this subdev generates events.
781+
* Note controls can send events, thus drivers exposing controls
782+
* should set this flag.
783+
*/
780784
#define V4L2_SUBDEV_FL_HAS_EVENTS (1U << 3)
781785

782786
struct regulator_bulk_data;

0 commit comments

Comments
 (0)