media: mc: Remove redundant documentation
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 27 Jan 2022 09:25:48 +0000 (09:25 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 24 Apr 2022 07:01:38 +0000 (08:01 +0100)
Remove redundant kerneldoc documentation in mc-device.c. The functions are
already documented in media-device.h, where non-redundant documentation is
also moved.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/mc/mc-device.c
include/media/media-device.h

index cf5e459b1d962696dc2a0169095f478a94b620ec..094647fdb8669dc601eed3dbb2d465e86543a6e9 100644 (file)
@@ -608,11 +608,6 @@ static void __media_device_unregister_entity(struct media_entity *entity)
        entity->graph_obj.mdev = NULL;
 }
 
-/**
- * media_device_register_entity - Register an entity with a media device
- * @mdev:      The media device
- * @entity:    The entity
- */
 int __must_check media_device_register_entity(struct media_device *mdev,
                                              struct media_entity *entity)
 {
@@ -691,16 +686,6 @@ void media_device_unregister_entity(struct media_entity *entity)
 }
 EXPORT_SYMBOL_GPL(media_device_unregister_entity);
 
-/**
- * media_device_init() - initialize a media device
- * @mdev:      The media device
- *
- * The caller is responsible for initializing the media device before
- * registration. The following fields must be set:
- *
- * - dev must point to the parent device
- * - model must be filled with the device model name
- */
 void media_device_init(struct media_device *mdev)
 {
        INIT_LIST_HEAD(&mdev->entities);
index 1345e6da688a9c89744e6e119559d137c93bed30..7d5b212792a51f7f16e3fdfed9ff72eaa8311204 100644 (file)
@@ -219,6 +219,12 @@ static inline __must_check int media_entity_enum_init(
  * So drivers need to first initialize the media device, register any entity
  * within the media device, create pad to pad links and then finally register
  * the media device by calling media_device_register() as a final step.
+ *
+ * The caller is responsible for initializing the media device before
+ * registration. The following fields must be set:
+ *
+ * - dev must point to the parent device
+ * - model must be filled with the device model name
  */
 void media_device_init(struct media_device *mdev);