diff options
| author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2024-12-24 08:01:04 -0800 |
|---|---|---|
| committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2025-01-07 15:45:51 +0200 |
| commit | dbe08c7b38f9bcb17c073cafc9ed8d3d2f398566 (patch) | |
| tree | cb179e69b933356ace1976929a94119368f83a56 /lib/tpm_tcg2.c | |
| parent | 6d41f0a39d6423c8e57e92ebbe9f8c0333a63f72 (diff) | |
tpm: Rename tpm2_is_active_pcr()
This function is checking for active PCR banks, so rename it
to something that's easier to read and closer to what the function
does.
Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'lib/tpm_tcg2.c')
| -rw-r--r-- | lib/tpm_tcg2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tpm_tcg2.c b/lib/tpm_tcg2.c index 7f868cc8837..edbe5f3aafa 100644 --- a/lib/tpm_tcg2.c +++ b/lib/tpm_tcg2.c @@ -43,7 +43,7 @@ int tcg2_get_pcr_info(struct udevice *dev, u32 *supported_pcr, u32 *active_pcr, if (hash_mask) { *supported_pcr |= hash_mask; - if (tpm2_is_active_pcr(&pcrs.selection[i])) + if (tpm2_is_active_bank(&pcrs.selection[i])) *active_pcr |= hash_mask; } else { printf("%s: unknown algorithm %x\n", __func__, |
