Change Aspeed PCC device name validation
Latest Aspeed PCC driver adds dual node support.
Aspeed PCC devices are named as "aspeed-lpc-pcc<ID>".
Change device name string check to substring check.
Tested on AMD CRB system.
Change-Id: I486471bc28c2d6cd6fdcf5e7a115ba455f71003e
Signed-off-by: Rajaganesh Rathinasabapathi <Rajaganesh.Rathinasabapathi@amd.com>
diff --git a/main.cpp b/main.cpp
index d84a5aa..cded6cf 100644
--- a/main.cpp
+++ b/main.cpp
@@ -318,7 +318,7 @@
break;
}
case 'd':
- if (std::string(optarg) == "/dev/aspeed-lpc-pcc")
+ if (std::string(optarg).starts_with("/dev/aspeed-lpc-pcc"))
{
procPostCode = aspeedPCC;
}