mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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>
This commit is contained in:
parent
50bff6a6f8
commit
2289629f27
2 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ static int fit_image_setup_verify(struct image_sign_info *info,
|
|||
|
||||
memset(info, '\0', sizeof(*info));
|
||||
info->keyname = fdt_getprop(fit, noffset, FIT_KEY_HINT, NULL);
|
||||
info->fit = (void *)fit;
|
||||
info->fit = fit;
|
||||
info->node_offset = noffset;
|
||||
info->name = algo_name;
|
||||
info->checksum = image_get_checksum_algo(algo_name);
|
||||
|
|
|
@ -1159,7 +1159,7 @@ struct image_sign_info {
|
|||
const char *keydir; /* Directory conaining keys */
|
||||
const char *keyname; /* Name of key to use */
|
||||
const char *keyfile; /* Filename of private or public key */
|
||||
void *fit; /* Pointer to FIT blob */
|
||||
const void *fit; /* Pointer to FIT blob */
|
||||
int node_offset; /* Offset of signature node */
|
||||
const char *name; /* Algorithm name */
|
||||
struct checksum_algo *checksum; /* Checksum algorithm information */
|
||||
|
|
Loading…
Reference in a new issue