]> Git Repo - u-boot.git/commitdiff
image: Add a prototype for fit_image_get_phase()
authorSimon Glass <[email protected]>
Sat, 7 Dec 2024 17:23:55 +0000 (10:23 -0700)
committerTom Rini <[email protected]>
Thu, 12 Dec 2024 22:35:23 +0000 (16:35 -0600)
This function exists but is not exported. Add a prototype so it can be
used elsewhere.

Signed-off-by: Simon Glass <[email protected]>
include/image.h

index 9be5acd8158f00930ab1f3988b8f577817acd1fe..bb15ef69871d80f952c05f19e51fddd40621e26c 100644 (file)
@@ -1171,6 +1171,18 @@ int fit_image_get_data_size_unciphered(const void *fit, int noffset,
 int fit_image_get_data_and_size(const void *fit, int noffset,
                                const void **data, size_t *size);
 
+/**
+ * fit_image_get_phase() - Get the phase from a FIT image
+ *
+ * @fit: FIT to read from
+ * @offset: offset node to read
+ * @phasep: Returns phase, if any
+ * Return: 0 if read OK and *phasep is value, -ENOENT if there was no phase
+ * property in the node, other -ve value on other error
+ */
+int fit_image_get_phase(const void *fit, int offset,
+                       enum image_phase_t *phasep);
+
 /**
  * fit_get_data_node() - Get verified image data for an image
  * @fit: Pointer to the FIT format image header
This page took 0.03964 seconds and 4 git commands to generate.