v4l2_fwnode_endpoint_parse() and v4l2_fwnode_endpoint_alloc_parse() take
a fwnode as the first argument and leave it up to the caller to check a
valid fwnode has been obtained through various means. Instead, add a check
here so the callers won't need to do that anymore.
Signed-off-by: Sakari Ailus <[email protected]>
Reviewed-by: Michael Riesch <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>