Fansensor: remove SOC info
remove hardcoded SOC specific information
Tested platforms:
- Aspeed ast2600 PWM on Bletchley
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I9881205110136a29159e67589442396f1b2327c8
diff --git a/src/FanMain.cpp b/src/FanMain.cpp
index a5a5844..50838a5 100644
--- a/src/FanMain.cpp
+++ b/src/FanMain.cpp
@@ -69,13 +69,12 @@
{
fs::path linkPath = parentPath / "device";
std::string canonical = fs::read_symlink(linkPath);
- if (boost::ends_with(canonical, "1e786000.pwm-tacho-controller") ||
- boost::ends_with(canonical, "1e610000.pwm-tacho-controller") ||
- boost::ends_with(canonical, "1e610000.pwm_tach:tach"))
+ if (boost::ends_with(canonical, "pwm-tacho-controller") ||
+ boost::ends_with(canonical, "pwm_tach:tach"))
{
return FanTypes::aspeed;
}
- if (boost::ends_with(canonical, "f0103000.pwm-fan-controller"))
+ if (boost::ends_with(canonical, "pwm-fan-controller"))
{
return FanTypes::nuvoton;
}