Name

is_media_entity_v4l2_subdev — Check if the entity is a v4l2_subdev

Synopsis

bool is_media_entity_v4l2_subdev (struct media_entity * entity);
 

Arguments

entity

pointer to entity

Return

true if the entity is an instance of a v4l2_subdev object and can safely be cast to a struct v4l2_subdev using the container_of macro, or false otherwise.