diff options
| author | Simon Glass <[email protected]> | 2024-12-07 10:23:55 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-12-12 16:35:23 -0600 |
| commit | 3344767d320b8881b6fa9a8ce5e1d9b7c852c9f1 (patch) | |
| tree | 835bb72ce87f605a466f0a76c4b0fd64dfcb2447 /include | |
| parent | a2c90dc3711da518fdea7a95a1a5a057e98fea3c (diff) | |
image: Add a prototype for fit_image_get_phase()
This function exists but is not exported. Add a prototype so it can be
used elsewhere.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/image.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h index 9be5acd8158..bb15ef69871 100644 --- a/include/image.h +++ b/include/image.h @@ -1172,6 +1172,18 @@ 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 * @image_uname: The name of the image node |
