Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6538b02d authored by Todor Tomov's avatar Todor Tomov Committed by Mauro Carvalho Chehab
Browse files

media: Make parameter of media_entity_remote_pad() const



The local pad parameter in media_entity_remote_pad() is not modified.
Make that explicit by adding a const modifier.

Signed-off-by: default avatarTodor Tomov <todor.tomov@linaro.org>
Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent b5e0733f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -917,7 +917,7 @@ media_entity_find_link(struct media_pad *source, struct media_pad *sink)
}
EXPORT_SYMBOL_GPL(media_entity_find_link);

struct media_pad *media_entity_remote_pad(struct media_pad *pad)
struct media_pad *media_entity_remote_pad(const struct media_pad *pad)
{
	struct media_link *link;

+1 −1
Original line number Diff line number Diff line
@@ -805,7 +805,7 @@ struct media_link *media_entity_find_link(struct media_pad *source,
 * Return: returns a pointer to the pad at the remote end of the first found
 * enabled link, or %NULL if no enabled link has been found.
 */
struct media_pad *media_entity_remote_pad(struct media_pad *pad);
struct media_pad *media_entity_remote_pad(const struct media_pad *pad);

/**
 * media_entity_get - Get a reference to the parent module