pseq: Add Services parameter to getGPIOValues()
Add a Services parameter to the PowerSequencerDevice::getGPIOValues()
method in the phosphor-power-sequencer application.
The Services object implements reading GPIO values in the standard way
using the libgpiod interface.
Change-Id: Ia6d1f1a0919aa6f45405cbe8375f8cc37800b002
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
diff --git a/phosphor-power-sequencer/src/power_sequencer_device.hpp b/phosphor-power-sequencer/src/power_sequencer_device.hpp
index 7a8c1b3..4b3ada6 100644
--- a/phosphor-power-sequencer/src/power_sequencer_device.hpp
+++ b/phosphor-power-sequencer/src/power_sequencer_device.hpp
@@ -70,9 +70,10 @@
* Throws an exception if the values could not be read or the device does
* not support GPIO values.
*
+ * @param services System services like hardware presence and the journal
* @return GPIO values
*/
- virtual std::vector<int> getGPIOValues() = 0;
+ virtual std::vector<int> getGPIOValues(Services& services) = 0;
/**
* Returns the value of the PMBus STATUS_WORD command for the specified