is_media_entity_v4l2_subdev(9) 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.

COPYRIGHT