summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2023-08-14 16:40:21 -0600
committerTom Rini <[email protected]>2023-08-25 13:54:33 -0400
commit633b3dc75536a7a878126c41babc248c095b66fe (patch)
treef5f3da366c6155eeda08abd8226ecef58d751e1d
parent7c6b18fb5494a1da2421b16c42d31fc466c38362 (diff)
expo: Make scene_obj_find() take a const scene
This does not change the scene, so mark the pointer const. Signed-off-by: Simon Glass <[email protected]>
-rw-r--r--boot/scene.c2
-rw-r--r--boot/scene_internal.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/boot/scene.c b/boot/scene.c
index e52333371f9..b4c36c41702 100644
--- a/boot/scene.c
+++ b/boot/scene.c
@@ -79,7 +79,7 @@ int scene_obj_count(struct scene *scn)
return count;
}
-void *scene_obj_find(struct scene *scn, uint id, enum scene_obj_t type)
+void *scene_obj_find(const struct scene *scn, uint id, enum scene_obj_t type)
{
struct scene_obj *obj;
diff --git a/boot/scene_internal.h b/boot/scene_internal.h
index fb1ea5533b9..1620d10a777 100644
--- a/boot/scene_internal.h
+++ b/boot/scene_internal.h
@@ -38,7 +38,7 @@ uint resolve_id(struct expo *exp, uint id);
* @type: Type of the object, or SCENEOBJT_NONE to match any type
* Returns: Object found, or NULL if not found
*/
-void *scene_obj_find(struct scene *scn, uint id, enum scene_obj_t type);
+void *scene_obj_find(const struct scene *scn, uint id, enum scene_obj_t type);
/**
* scene_obj_find_by_name() - Find an object in a scene by name