}
EXPORT_SYMBOL_GPL(media_device_register_entity);
-/**
- * media_device_unregister_entity - Unregister an entity
- * @entity: The entity
- *
- * If the entity has never been registered this function will return
- * immediately.
- */
static void __media_device_unregister_entity(struct media_entity *entity)
{
struct media_device *mdev = entity->graph_obj.mdev;
}
EXPORT_SYMBOL_GPL(media_device_unregister_entity);
-
/**
* media_device_init() - initialize a media device
* @mdev: The media device
}
EXPORT_SYMBOL_GPL(media_device_init);
-/**
- * media_device_cleanup() - Cleanup a media device
- * @mdev: The media device
- *
- */
void media_device_cleanup(struct media_device *mdev)
{
ida_destroy(&mdev->entity_internal_idx);
}
EXPORT_SYMBOL_GPL(media_device_cleanup);
-/**
- * __media_device_register() - register a media device
- * @mdev: The media device
- * @owner: The module owner
- *
- * returns zero on success or a negative error code.
- */
int __must_check __media_device_register(struct media_device *mdev,
struct module *owner)
{
}
EXPORT_SYMBOL_GPL(__media_device_register);
-/**
- * media_device_unregister - unregister a media device
- * @mdev: The media device
- *
- * It is safe to call this function on an unregistered
- * (but initialised) media device.
- */
void media_device_unregister(struct media_device *mdev)
{
struct media_entity *entity;
}
};
-/**
- * __media_entity_enum_init - Initialise an entity enumeration
- *
- * @ent_enum: Entity enumeration to be initialised
- * @idx_max: Maximum number of entities in the enumeration
- *
- * Returns zero on success or a negative error code.
- */
__must_check int __media_entity_enum_init(struct media_entity_enum *ent_enum,
int idx_max)
{
}
EXPORT_SYMBOL_GPL(__media_entity_enum_init);
-/**
- * media_entity_enum_cleanup - Release resources of an entity enumeration
- *
- * @e: Entity enumeration to be released
- */
void media_entity_enum_cleanup(struct media_entity_enum *ent_enum)
{
kfree(ent_enum->bmap);
* a sysfs attribute.
*
* Unregistering a media device that hasn't been registered is *NOT* safe.
+ *
+ * Return: returns zero on success or a negative error code.
*/
int __must_check __media_device_register(struct media_device *mdev,
struct module *owner);
* __media_device_unregister() - Unegisters a media device element
*
* @mdev: pointer to struct &media_device
+ *
+ *
+ * It is safe to call this function on an unregistered (but initialised)
+ * media device.
*/
void media_device_unregister(struct media_device *mdev);
}
}
+/**
+ * __media_entity_enum_init - Initialise an entity enumeration
+ *
+ * @ent_enum: Entity enumeration to be initialised
+ * @idx_max: Maximum number of entities in the enumeration
+ *
+ * Return: Returns zero on success or a negative error code.
+ */
__must_check int __media_entity_enum_init(struct media_entity_enum *ent_enum,
int idx_max);
-void media_entity_enum_cleanup(struct media_entity_enum *e);
+
+/**
+ * media_entity_enum_cleanup - Release resources of an entity enumeration
+ *
+ * @ent_enum: Entity enumeration to be released
+ */
+void media_entity_enum_cleanup(struct media_entity_enum *ent_enum);
/**
* media_entity_enum_zero - Clear the entire enum
* Note: this is an unlocked version of media_remove_intf_links().
*/
void __media_remove_intf_links(struct media_interface *intf);
+
/**
* media_remove_intf_links() - remove all links associated with an interface
*
*/
void media_remove_intf_links(struct media_interface *intf);
-
#define media_entity_call(entity, operation, args...) \
(((entity)->ops && (entity)->ops->operation) ? \
(entity)->ops->operation((entity) , ##args) : -ENOIOCTLCMD)