[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
@@ -573,7 +573,7 @@ static int csi2_configure(struct isp_csi2_device *csi2)
|
||||
if (csi2->contexts[0].enabled || csi2->ctrl.if_enable)
|
||||
return -EBUSY;
|
||||
|
||||
pad = media_entity_remote_source(&csi2->pads[CSI2_PAD_SINK]);
|
||||
pad = media_entity_remote_pad(&csi2->pads[CSI2_PAD_SINK]);
|
||||
sensor = media_entity_to_v4l2_subdev(pad->entity);
|
||||
pdata = sensor->host_priv;
|
||||
|
||||
|
Reference in New Issue
Block a user