aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/media-entity.c
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2013-06-03 04:16:13 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-06-08 20:47:11 -0400
commit1bddf1b3ac021feb9dafcc2c6ef7018453e22589 (patch)
tree02dfd99f7c7b4ad1c1e45c9c338bb1dc1b62410b /drivers/media/media-entity.c
parentd716ef46fbb9de22de09516ecff990fe4e7799e3 (diff)
[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>
Diffstat (limited to 'drivers/media/media-entity.c')
-rw-r--r--drivers/media/media-entity.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c
index e1cd13283407..0438209d020a 100644
--- a/drivers/media/media-entity.c
+++ b/drivers/media/media-entity.c
@@ -560,17 +560,16 @@ media_entity_find_link(struct media_pad *source, struct media_pad *sink)
560EXPORT_SYMBOL_GPL(media_entity_find_link); 560EXPORT_SYMBOL_GPL(media_entity_find_link);
561 561
562/** 562/**
563 * media_entity_remote_source - Find the source pad at the remote end of a link 563 * media_entity_remote_pad - Find the pad at the remote end of a link
564 * @pad: Sink pad at the local end of the link 564 * @pad: Pad at the local end of the link
565 * 565 *
566 * Search for a remote source pad connected to the given sink pad by iterating 566 * Search for a remote pad connected to the given pad by iterating over all
567 * over all links originating or terminating at that pad until an enabled link 567 * links originating or terminating at that pad until an enabled link is found.
568 * is found.
569 * 568 *
570 * Return a pointer to the pad at the remote end of the first found enabled 569 * Return a pointer to the pad at the remote end of the first found enabled
571 * link, or NULL if no enabled link has been found. 570 * link, or NULL if no enabled link has been found.
572 */ 571 */
573struct media_pad *media_entity_remote_source(struct media_pad *pad) 572struct media_pad *media_entity_remote_pad(struct media_pad *pad)
574{ 573{
575 unsigned int i; 574 unsigned int i;
576 575
@@ -590,4 +589,4 @@ struct media_pad *media_entity_remote_source(struct media_pad *pad)
590 return NULL; 589 return NULL;
591 590
592} 591}
593EXPORT_SYMBOL_GPL(media_entity_remote_source); 592EXPORT_SYMBOL_GPL(media_entity_remote_pad);