]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
[media] media-device.h: Let clearer that entity function must be initialized
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 11 Dec 2015 14:41:12 +0000 (12:41 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:19:07 +0000 (12:19 -0200)
Improve the documentation to let it clear that the entity function
must be initialized.

Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
include/media/media-device.h
include/uapi/linux/media.h

index f9907a7728d466d833028c6fb8fe34a7c221a6f4..215a0d88241d46bd4917142e8ace6dc3c960398f 100644 (file)
@@ -423,6 +423,10 @@ void media_device_unregister(struct media_device *mdev);
  * %MEDIA_ENT_FL_DEFAULT indicates the default entity for a given type.
  *     This can be used to report the default audio and video devices or the
  *     default camera sensor.
+ *
+ * NOTE: Drivers should set the entity function before calling this function.
+ * Please notice that the values %MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN and
+ * %MEDIA_ENT_F_UNKNOWN should not be used by the drivers.
  */
 int __must_check media_device_register_entity(struct media_device *mdev,
                                              struct media_entity *entity);
index ff6a8010c5200b7107e6e0b58b8b6179ebd0b176..8d8e1a3e6e1af79926018e3e98bb0a8425b82770 100644 (file)
@@ -92,7 +92,7 @@ struct media_device_info {
  *
  * Subdevs are initialized with MEDIA_ENT_T_V4L2_SUBDEV_UNKNOWN,
  * in order to preserve backward compatibility.
- * Drivers should change to the proper subdev type before
+ * Drivers must change to the proper subdev type before
  * registering the entity.
  */