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 e6fe563..e9dad4a 100644 (file)
@@ -162,7 +162,7 @@ Tpm2DeviceLibConstructor (
     PcdSet8S(PcdActiveTpmInterfaceType, PtpInterface);\r
   }\r
 \r
     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
     IdleByPass = Tpm2GetIdleByPass((VOID *) (UINTN) PcdGet64 (PcdTpmBaseAddress));\r
     PcdSet8S(PcdCRBIdleByPass, IdleByPass);\r
   }\r
index edcdb72..5f6e163 100644 (file)
@@ -125,7 +125,7 @@ Tpm2InstanceLibDTpmConstructor (
         PcdSet8S(PcdActiveTpmInterfaceType, PtpInterface);\r
       }\r
 \r
         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
         IdleByPass = Tpm2GetIdleByPass((VOID *) (UINTN) PcdGet64 (PcdTpmBaseAddress));\r
         PcdSet8S(PcdCRBIdleByPass, IdleByPass);\r
       }\r