"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <sjg@chromium.org>

authored by

Simon Glass and committed by
Tom Rini
9922227a 8369dd05

+12
+12
include/image.h
··· 1172 1172 const void **data, size_t *size); 1173 1173 1174 1174 /** 1175 + * fit_image_get_phase() - Get the phase from a FIT image 1176 + * 1177 + * @fit: FIT to read from 1178 + * @offset: offset node to read 1179 + * @phasep: Returns phase, if any 1180 + * Return: 0 if read OK and *phasep is value, -ENOENT if there was no phase 1181 + * property in the node, other -ve value on other error 1182 + */ 1183 + int fit_image_get_phase(const void *fit, int offset, 1184 + enum image_phase_t *phasep); 1185 + 1186 + /** 1175 1187 * fit_get_data_node() - Get verified image data for an image 1176 1188 * @fit: Pointer to the FIT format image header 1177 1189 * @image_uname: The name of the image node