Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Todor Tomov and committed by
Mauro Carvalho Chehab
6538b02d b5e0733f

+2 -2
+1 -1
drivers/media/media-entity.c
··· 917 917 } 918 918 EXPORT_SYMBOL_GPL(media_entity_find_link); 919 919 920 - struct media_pad *media_entity_remote_pad(struct media_pad *pad) 920 + struct media_pad *media_entity_remote_pad(const struct media_pad *pad) 921 921 { 922 922 struct media_link *link; 923 923
+1 -1
include/media/media-entity.h
··· 805 805 * Return: returns a pointer to the pad at the remote end of the first found 806 806 * enabled link, or %NULL if no enabled link has been found. 807 807 */ 808 - struct media_pad *media_entity_remote_pad(struct media_pad *pad); 808 + struct media_pad *media_entity_remote_pad(const struct media_pad *pad); 809 809 810 810 /** 811 811 * media_entity_get - Get a reference to the parent module