diff options
author | Simon Glass <sjg@chromium.org> | 2020-03-18 11:44:06 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-04-01 07:45:09 -0600 |
commit | 72188f546291cfadea99e9383c133d6aaa37d87d (patch) | |
tree | c950369be789dcb92fcd90c15ed48a889a736e78 /common/image-cipher.c | |
parent | b008677daf2a9dc0335260c7c4e24390487fe0ca (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image-cipher.c b/common/image-cipher.c index cee3b03ee5..f50c3d31bd 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; |