mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[media] media-device.h: Let clearer that entity function must be initialized
Improve the documentation to let it clear that the entity function must be initialized. Suggested-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
829de29bfe
commit
d1b9da2d60
2 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue