power: fix driver name for the PDU
...and also add a FIXME about the EEPROMs that we will have to manage in
a hotplug fashion.
Fixes: 3905e44f hardware: make FspYhPdu hot-pluggable
Change-Id: Ie5e1f58c4aeec16b200075a3845ab8eaa626f08e
diff --git a/src/ietf-hardware/Factory.cpp b/src/ietf-hardware/Factory.cpp
index 69984d0..9a8f401 100644
--- a/src/ietf-hardware/Factory.cpp
+++ b/src/ietf-hardware/Factory.cpp
@@ -14,9 +14,10 @@
void createPower(std::shared_ptr<velia::ietf_hardware::IETFHardware> ietfHardware)
{
+ // FIXME: also bind/unbind the EEPROMs which are embedded in the PDU/PSUs
auto pdu = std::make_shared<velia::ietf_hardware::FspYhPdu>("/sys/bus/i2c/devices/2-0025/hwmon",
"pdu",
- std::make_shared<TransientI2C>(2, 0x25, "ym2151e"));
+ std::make_shared<TransientI2C>(2, 0x25, "yh5151e"));
auto psu1 = std::make_shared<velia::ietf_hardware::FspYhPsu>("/sys/bus/i2c/devices/2-0058/hwmon",
"psu1",
std::make_shared<TransientI2C>(2, 0x58, "ym2151e"));