aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/media/imx/imx-media-dev-common.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-06-25 18:02:24 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-07-17 11:21:35 +0100
commitb2e44430b6348f68f56e78e932e6312f12128778 (patch)
treefb7218c9d52b0521f56926227fc61b1dcd530d6a /drivers/staging/media/imx/imx-media-dev-common.c
parentmedia: v4l2-async: Add notifier operation to destroy asd instances (diff)
downloadlinux-dev-b2e44430b6348f68f56e78e932e6312f12128778.tar.xz
linux-dev-b2e44430b6348f68f56e78e932e6312f12128778.zip
media: mc-entity: Rename media_entity_remote_pad() to media_pad_remote_pad_first()
The media_entity_remote_pad() is misnamed, as it operates on a pad and not an entity. Rename it to media_pad_remote_pad_first() to clarify its behaviour. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/staging/media/imx/imx-media-dev-common.c')
-rw-r--r--drivers/staging/media/imx/imx-media-dev-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/imx/imx-media-dev-common.c b/drivers/staging/media/imx/imx-media-dev-common.c
index 80b69a9a752c..e6d6ed3b1161 100644
--- a/drivers/staging/media/imx/imx-media-dev-common.c
+++ b/drivers/staging/media/imx/imx-media-dev-common.c
@@ -235,7 +235,7 @@ static int imx_media_inherit_controls(struct imx_media_dev *imxmd,
if (!(spad->flags & MEDIA_PAD_FL_SINK))
continue;
- pad = media_entity_remote_pad(spad);
+ pad = media_pad_remote_pad_first(spad);
if (!pad || !is_media_entity_v4l2_subdev(pad->entity))
continue;