media: mc: Make media_entity_get_fwnode_pad() fwnode argument const
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 5 May 2023 13:27:49 +0000 (16:27 +0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 25 May 2023 14:21:21 +0000 (16:21 +0200)
fwnode_graph_parse_endpoint() fwnode argument is now const, therefore make
media_entity_get_fwnode_pad() fwnode argument const as well.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/mc/mc-entity.c
include/media/media-entity.h

index e7216a9..8d6e7a6 100644 (file)
@@ -1416,7 +1416,7 @@ struct media_pad *media_pad_remote_pad_unique(const struct media_pad *pad)
 EXPORT_SYMBOL_GPL(media_pad_remote_pad_unique);
 
 int media_entity_get_fwnode_pad(struct media_entity *entity,
-                               struct fwnode_handle *fwnode,
+                               const struct fwnode_handle *fwnode,
                                unsigned long direction_flags)
 {
        struct fwnode_endpoint endpoint;
index 741f9c6..452d9c9 100644 (file)
@@ -1079,7 +1079,7 @@ struct media_pipeline *media_pad_pipeline(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,
+                               const struct fwnode_handle *fwnode,
                                unsigned long direction_flags);
 
 /**