
This function has a comment in both C and header files. Drop the one in the C file and tweak the header-file one for clarity. Signed-off-by: Simon Glass <sjg@chromium.org> --- boot/image-fit.c | 12 ------------ include/image.h | 4 ++-- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/boot/image-fit.c b/boot/image-fit.c index ff6201306f4..cc6aa6afd36 100644 --- a/boot/image-fit.c +++ b/boot/image-fit.c @@ -810,18 +810,6 @@ int fit_image_get_comp(const void *fit, int noffset, uint8_t *comp) return 0; } -/** - * fit_image_get_phase() - get the phase for a configuration node - * @fit: pointer to the FIT format image header - * @offset: configuration-node offset - * @phasep: returns the phase - * - * Finds the phase property in a given configuration node. If the property is - * found, its (string) value is translated to the numeric id which is returned - * to the caller. - * - * Returns: 0 on success, -ENOENT if missing, -EINVAL for invalid value - */ int fit_image_get_phase(const void *fit, int offset, enum image_phase_t *phasep) { const void *data; diff --git a/include/image.h b/include/image.h index 0402cf92219..d7e081a0a5b 100644 --- a/include/image.h +++ b/include/image.h @@ -1259,10 +1259,10 @@ int fit_image_get_data(const void *fit, int noffset, const void **data, size_t *size); /** - * fit_image_get_phase() - Get the phase from a FIT image + * fit_image_get_phase() - Get the phase from an image in a FIT * * @fit: FIT to read from - * @offset: offset node to read + * @offset: offset of the image-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 -- 2.43.0