@@ -366,8 +366,8 @@ struct media_entity *media_graph_walk_next(struct media_graph *graph)
EXPORT_SYMBOL_GPL(media_graph_walk_next);
int media_entity_get_fwnode_pad(struct media_entity *entity,
- struct fwnode_handle *fwnode,
- unsigned long direction_flags)
+ const struct fwnode_handle *fwnode,
+ const unsigned long direction_flags)
{
struct fwnode_endpoint endpoint;
int ret;
@@ -886,8 +886,8 @@ struct media_pad *media_entity_remote_pad(const struct media_pad *pad);
* Return: returns the pad number on success or a negative error code.
*/
int media_entity_get_fwnode_pad(struct media_entity *entity,
- struct fwnode_handle *fwnode,
- unsigned long direction_flags);
+ const struct fwnode_handle *fwnode,
+ const unsigned long direction_flags);
/**
* media_graph_walk_init - Allocate resources used by graph walk.
The function media_entity_get_fwnode_pad() can be passed the const local_fwnode member from a struct fwnode_endpoint, so the fwnode argument should be a const pointer. Change the direction_flags argument to const in the process. Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com> --- drivers/media/mc/mc-entity.c | 4 ++-- include/media/media-entity.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)