[media] media: Rename media_entity_remote_source to media_entity_remote_pad
Function media_entity_remote_source actually returns the remote pad to the given one, regardless if this is the source or the sink pad. Name media_entity_remote_pad is more adequate for this function. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
d716ef46fb
commit
1bddf1b3ac
@@ -845,7 +845,7 @@ static int camif_pipeline_validate(struct camif_dev *camif)
|
||||
int ret;
|
||||
|
||||
/* Retrieve format at the sensor subdev source pad */
|
||||
pad = media_entity_remote_source(&camif->pads[0]);
|
||||
pad = media_entity_remote_pad(&camif->pads[0]);
|
||||
if (!pad || media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV)
|
||||
return -EPIPE;
|
||||
|
||||
|
Reference in New Issue
Block a user