]> git.baikalelectronics.ru Git - uboot.git/commit
image.h: make image_sign_info.fit point to const
authorHannu Lounento <hannu.lounento@vaisala.com>
Mon, 18 Oct 2021 05:49:03 +0000 (08:49 +0300)
committerSimon Glass <sjg@chromium.org>
Sun, 31 Oct 2021 18:26:44 +0000 (12:26 -0600)
commit5280d45b5cfa01f52dcafe6cdd8f67b640111775
tree944350cd74c594738ce444a5c1adbc88fe9936d3
parentccc278f1240a583ccb8c3e11634c3670c67b90fa
image.h: make image_sign_info.fit point to const

The data blob apparently does not need to be modified through the fit
field of the image_sign_info struct so make it point to const to avoid
the need to cast away constness in functions that assign a pointer to
const data to the field.

fit_image_setup_verify already had to cast away constness as it assigned
a const void * argument to the field. The cast can now be removed.

Signed-off-by: Hannu Lounento <hannu.lounento@vaisala.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/image-fit-sig.c
include/image.h