media_entity_get(9) Get a reference to the parent module

SYNOPSIS

struct media_entity * media_entity_get(struct media_entity * entity);

ARGUMENTS

entity

The entity

DESCRIPTION

Get a reference to the parent media device module.

The function will return immediately if entity is NULL.

Return a pointer to the entity on success or NULL on failure.

COPYRIGHT