Modfiy the type size for present/powergood GPIOs
Since the gpio numbers of the gpio expander may
exceed 255, it needs to use the bigger type size
for present/powergood GPIOs
Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: I0afd370457ec64c43d327cb58cbc70848644db02
diff --git a/nvme_manager.cpp b/nvme_manager.cpp
index 276eb2d..c240765 100644
--- a/nvme_manager.cpp
+++ b/nvme_manager.cpp
@@ -368,8 +368,8 @@
instance.value("NVMeDriveFaultLEDGroupPath", "");
std::string locateLedGroupPath =
instance.value("NVMeDriveLocateLEDGroupPath", "");
- uint8_t presentPin = instance.value("NVMeDrivePresentPin", 0);
- uint8_t pwrGoodPin = instance.value("NVMeDrivePwrGoodPin", 0);
+ uint16_t presentPin = instance.value("NVMeDrivePresentPin", 0);
+ uint16_t pwrGoodPin = instance.value("NVMeDrivePwrGoodPin", 0);
std::string locateLedControllerBusName =
instance.value("NVMeDriveLocateLEDControllerBusName", "");
std::string locateLedControllerPath =
diff --git a/nvme_manager.hpp b/nvme_manager.hpp
index 2a68a0a..b454ed3 100644
--- a/nvme_manager.hpp
+++ b/nvme_manager.hpp
@@ -51,8 +51,8 @@
std::string index;
uint8_t busID;
std::string faultLedGroupPath;
- uint8_t presentPin;
- uint8_t pwrGoodPin;
+ uint16_t presentPin;
+ uint16_t pwrGoodPin;
std::string locateLedControllerBusName;
std::string locateLedControllerPath;
std::string locateLedGroupPath;