Fix I2C dev path for the 5.0 kernel
In the 5.0 Linux kernel, an I2C device path segment changed:
i2c@1e78a000 -> bus@1e78a000
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I7ad7262812de3792dbae85b6f252ec6cbbdc333e
diff --git a/power-sequencer/ucd90160_defs.cpp b/power-sequencer/ucd90160_defs.cpp
index d271f4b..531a989 100644
--- a/power-sequencer/ucd90160_defs.cpp
+++ b/power-sequencer/ucd90160_defs.cpp
@@ -28,7 +28,7 @@
const DeviceMap UCD90160::deviceMap{
{0,
DeviceDefinition{
- "/sys/devices/platform/ahb/ahb:apb/ahb:apb:i2c@1e78a000/"
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/"
"1e78a400.i2c-bus/i2c-11/11-0064",
RailNames{"5.0VCS"s, "12.0V"s, "3.3V"s, "1.8V"s, "1.1V"s, "1.0V"s,
@@ -48,7 +48,7 @@
GPIOAnalysis{
{extraAnalysisType::gpuPGOOD,
GPIOGroup{
- "/sys/devices/platform/ahb/ahb:apb/ahb:apb:i2c@"
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@"
"1e78a000/1e78a400.i2c-bus/i2c-11/11-0060",
gpio::Value::low,
[](auto& ucd, const auto& callout) {
@@ -71,7 +71,7 @@
{extraAnalysisType::gpuOverTemp,
GPIOGroup{
- "/sys/devices/platform/ahb/ahb:apb/ahb:apb:i2c@"
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@"
"1e78a000/1e78a400.i2c-bus/i2c-11/11-0060",
gpio::Value::low,
[](auto& ucd,