mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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: Todor Tomov <todor.tomov@linaro.org> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
b5e0733ffc
commit
6538b02d21
@ -917,7 +917,7 @@ media_entity_find_link(struct media_pad *source, struct media_pad *sink)
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(media_entity_find_link);
|
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;
|
struct media_link *link;
|
||||||
|
|
||||||
|
@ -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
|
* 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.
|
* 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
|
* media_entity_get - Get a reference to the parent module
|
||||||
|
Loading…
x
Reference in New Issue
Block a user