aboutsummaryrefslogtreecommitdiff
path: root/common/image-cipher.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-03-18 11:44:06 -0600
committerSimon Glass <sjg@chromium.org>2020-04-01 07:45:09 -0600
commit72188f546291cfadea99e9383c133d6aaa37d87d (patch)
treec950369be789dcb92fcd90c15ed48a889a736e78 /common/image-cipher.c
parentb008677daf2a9dc0335260c7c4e24390487fe0ca (diff)
downloadu-boot-72188f546291cfadea99e9383c133d6aaa37d87d.zip
u-boot-72188f546291cfadea99e9383c133d6aaa37d87d.tar.gz
u-boot-72188f546291cfadea99e9383c133d6aaa37d87d.tar.bz2
image: Use constants for 'required' and 'key-name-hint'
These are used in multiple places so update them to use a shared #define. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Philippe Reynes <philippe.reynes@softathome.com>
Diffstat (limited to 'common/image-cipher.c')
-rw-r--r--common/image-cipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image-cipher.c b/common/image-cipher.c
index cee3b03..f50c3d3 100644
--- a/common/image-cipher.c
+++ b/common/image-cipher.c
@@ -88,7 +88,7 @@ static int fit_image_setup_decrypt(struct image_cipher_info *info,
return -1;
}
- info->keyname = fdt_getprop(fit, cipher_noffset, "key-name-hint", NULL);
+ info->keyname = fdt_getprop(fit, cipher_noffset, FIT_KEY_HINT, NULL);
if (!info->keyname) {
printf("Can't get key name\n");
return -1;