]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg Tpm2DeviceLibDTpm: Update enum type name to match the one in lib
authorLiming Gao <liming.gao@intel.com>
Wed, 27 Jun 2018 14:47:50 +0000 (22:47 +0800)
committerLiming Gao <liming.gao@intel.com>
Wed, 27 Jun 2018 14:54:07 +0000 (22:54 +0800)
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.c
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.c

index e6fe563b4000213aec9dc16695ce272630cd748f..e9dad4a3b08c7776cdd68912d8010890d6fb4f44 100644 (file)
@@ -162,7 +162,7 @@ Tpm2DeviceLibConstructor (
     PcdSet8S(PcdActiveTpmInterfaceType, PtpInterface);\r
   }\r
 \r
-  if (PcdGet8(PcdActiveTpmInterfaceType) == PtpInterfaceCrb && PcdGet8(PcdCRBIdleByPass) == 0xFF) {\r
+  if (PcdGet8(PcdActiveTpmInterfaceType) == Tpm2PtpInterfaceCrb && PcdGet8(PcdCRBIdleByPass) == 0xFF) {\r
     IdleByPass = Tpm2GetIdleByPass((VOID *) (UINTN) PcdGet64 (PcdTpmBaseAddress));\r
     PcdSet8S(PcdCRBIdleByPass, IdleByPass);\r
   }\r
index edcdb72a7938d3fa6484f24716fceda3705f3ae7..5f6e163c0f2ecddc4b4b81a2f2b35c03c7f81641 100644 (file)
@@ -125,7 +125,7 @@ Tpm2InstanceLibDTpmConstructor (
         PcdSet8S(PcdActiveTpmInterfaceType, PtpInterface);\r
       }\r
 \r
-      if (PcdGet8(PcdActiveTpmInterfaceType) == PtpInterfaceCrb && PcdGet8(PcdCRBIdleByPass) == 0xFF) {\r
+      if (PcdGet8(PcdActiveTpmInterfaceType) == Tpm2PtpInterfaceCrb && PcdGet8(PcdCRBIdleByPass) == 0xFF) {\r
         IdleByPass = Tpm2GetIdleByPass((VOID *) (UINTN) PcdGet64 (PcdTpmBaseAddress));\r
         PcdSet8S(PcdCRBIdleByPass, IdleByPass);\r
       }\r