Re: [PATCH 1/3] tpm: Fix spelling for tpmu_ha union

2023-01-03 Thread Ilias Apalodimas
On Tue, 3 Jan 2023 at 22:42, Eddie James  wrote:
>
> tmpu -> tpmu
>
> Signed-off-by: Eddie James 
> ---
>  include/tpm-v2.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/tpm-v2.h b/include/tpm-v2.h
> index 737e57551d..85feda3e06 100644
> --- a/include/tpm-v2.h
> +++ b/include/tpm-v2.h
> @@ -167,7 +167,7 @@ struct tcg_pcr_event {
>  /**
>   * Definition of TPMU_HA Union
>   */
> -union tmpu_ha {
> +union tpmu_ha {
> u8 sha1[TPM2_SHA1_DIGEST_SIZE];
> u8 sha256[TPM2_SHA256_DIGEST_SIZE];
> u8 sm3_256[TPM2_SM3_256_DIGEST_SIZE];
> @@ -183,7 +183,7 @@ union tmpu_ha {
>   */
>  struct tpmt_ha {
> u16 hash_alg;
> -   union tmpu_ha digest;
> +   union tpmu_ha digest;
>  } __packed;
>
>  /**
> --
> 2.31.1
>

Reviewed-by: Ilias Apalodimas 


[PATCH 1/3] tpm: Fix spelling for tpmu_ha union

2023-01-03 Thread Eddie James
tmpu -> tpmu

Signed-off-by: Eddie James 
---
 include/tpm-v2.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/tpm-v2.h b/include/tpm-v2.h
index 737e57551d..85feda3e06 100644
--- a/include/tpm-v2.h
+++ b/include/tpm-v2.h
@@ -167,7 +167,7 @@ struct tcg_pcr_event {
 /**
  * Definition of TPMU_HA Union
  */
-union tmpu_ha {
+union tpmu_ha {
u8 sha1[TPM2_SHA1_DIGEST_SIZE];
u8 sha256[TPM2_SHA256_DIGEST_SIZE];
u8 sm3_256[TPM2_SM3_256_DIGEST_SIZE];
@@ -183,7 +183,7 @@ union tmpu_ha {
  */
 struct tpmt_ha {
u16 hash_alg;
-   union tmpu_ha digest;
+   union tpmu_ha digest;
 } __packed;
 
 /**
-- 
2.31.1