diff options
| author | Patrick Venture <venture@google.com> | 2018-10-30 11:24:40 -0700 |
|---|---|---|
| committer | Patrick Venture <venture@google.com> | 2018-10-30 11:35:34 -0700 |
| commit | 7af157b10ef4c1a0d09be0e310825909ca630cd0 (patch) | |
| tree | 25b93febae7ec183587e9cc99a89a88ba2855e77 /ipmi | |
| parent | 34ddc90293c242b4f946709495ced2c0af3cd792 (diff) | |
| download | phosphor-pid-control-7af157b10ef4c1a0d09be0e310825909ca630cd0.tar.gz phosphor-pid-control-7af157b10ef4c1a0d09be0e310825909ca630cd0.zip | |
style: function names should be lower camel
Fix function names to be lower camel.
Change-Id: I145e1f4c03d7740bc1525dcffbdce2f78fd61075
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'ipmi')
| -rw-r--r-- | ipmi/manualcmds.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/ipmi/manualcmds.cpp b/ipmi/manualcmds.cpp index 031e1c4..dd0c0e6 100644 --- a/ipmi/manualcmds.cpp +++ b/ipmi/manualcmds.cpp @@ -57,7 +57,7 @@ using Value = sdbusplus::message::variant<bool>; using PropertyMap = std::map<Property, Value>; /* The following was copied directly from my manual thread handler. */ -static std::string GetControlPath(int8_t zone) +static std::string getControlPath(int8_t zone) { return std::string(objectPath) + std::to_string(zone); } @@ -72,10 +72,10 @@ static std::string GetControlPath(int8_t zone) * a{sv} 2 "Manual" b false "FailSafe" b false */ -static ipmi_ret_t GetFanCtrlProperty(uint8_t zoneId, bool* value, +static ipmi_ret_t getFanCtrlProperty(uint8_t zoneId, bool* value, const std::string& property) { - std::string path = GetControlPath(zoneId); + std::string path = getControlPath(zoneId); auto propertyReadBus = sdbusplus::bus::new_default(); auto pimMsg = propertyReadBus.new_method_call(busName, path.c_str(), @@ -101,7 +101,7 @@ static ipmi_ret_t GetFanCtrlProperty(uint8_t zoneId, bool* value, return IPMI_CC_OK; } -static ipmi_ret_t GetFailsafeModeState(const uint8_t* reqBuf, uint8_t* replyBuf, +static ipmi_ret_t getFailsafeModeState(const uint8_t* reqBuf, uint8_t* replyBuf, size_t* dataLen) { ipmi_ret_t rc = IPMI_CC_OK; @@ -115,7 +115,7 @@ static ipmi_ret_t GetFailsafeModeState(const uint8_t* reqBuf, uint8_t* replyBuf, const auto request = reinterpret_cast<const struct FanCtrlRequest*>(&reqBuf[0]); - rc = GetFanCtrlProperty(request->zone, ¤t, failsafeProperty); + rc = getFanCtrlProperty(request->zone, ¤t, failsafeProperty); if (rc) { return rc; @@ -132,7 +132,7 @@ static ipmi_ret_t GetFailsafeModeState(const uint8_t* reqBuf, uint8_t* replyBuf, * <arg name="properties" direction="out" type="a{sv}"/> * </method> */ -static ipmi_ret_t GetManualModeState(const uint8_t* reqBuf, uint8_t* replyBuf, +static ipmi_ret_t getManualModeState(const uint8_t* reqBuf, uint8_t* replyBuf, size_t* dataLen) { ipmi_ret_t rc = IPMI_CC_OK; @@ -146,7 +146,7 @@ static ipmi_ret_t GetManualModeState(const uint8_t* reqBuf, uint8_t* replyBuf, const auto request = reinterpret_cast<const struct FanCtrlRequest*>(&reqBuf[0]); - rc = GetFanCtrlProperty(request->zone, ¤t, manualProperty); + rc = getFanCtrlProperty(request->zone, ¤t, manualProperty); if (rc) { return rc; @@ -164,7 +164,7 @@ static ipmi_ret_t GetManualModeState(const uint8_t* reqBuf, uint8_t* replyBuf, * <arg name="value" direction="in" type="v"/> * </method> */ -static ipmi_ret_t SetManualModeState(const uint8_t* reqBuf, uint8_t* replyBuf, +static ipmi_ret_t setManualModeState(const uint8_t* reqBuf, uint8_t* replyBuf, size_t* dataLen) { ipmi_ret_t rc = IPMI_CC_OK; @@ -184,7 +184,7 @@ static ipmi_ret_t SetManualModeState(const uint8_t* reqBuf, uint8_t* replyBuf, auto PropertyWriteBus = sdbusplus::bus::new_default(); - std::string path = GetControlPath(request->zone); + std::string path = getControlPath(request->zone); auto pimMsg = PropertyWriteBus.new_method_call(busName, path.c_str(), propertiesintf, "Set"); @@ -206,7 +206,7 @@ static ipmi_ret_t SetManualModeState(const uint8_t* reqBuf, uint8_t* replyBuf, } /* Three command packages: get, set true, set false */ -static ipmi_ret_t ManualModeControl(ipmi_cmd_t cmd, const uint8_t* reqBuf, +static ipmi_ret_t manualModeControl(ipmi_cmd_t cmd, const uint8_t* reqBuf, uint8_t* replyCmdBuf, size_t* dataLen) { ipmi_ret_t rc = IPMI_CC_OK; @@ -222,11 +222,11 @@ static ipmi_ret_t ManualModeControl(ipmi_cmd_t cmd, const uint8_t* reqBuf, switch (request->command) { case GET_CONTROL_STATE: - return GetManualModeState(reqBuf, replyCmdBuf, dataLen); + return getManualModeState(reqBuf, replyCmdBuf, dataLen); case SET_CONTROL_STATE: - return SetManualModeState(reqBuf, replyCmdBuf, dataLen); + return setManualModeState(reqBuf, replyCmdBuf, dataLen); case GET_FAILSAFE_STATE: - return GetFailsafeModeState(reqBuf, replyCmdBuf, dataLen); + return getFailsafeModeState(reqBuf, replyCmdBuf, dataLen); default: rc = IPMI_CC_INVALID; } @@ -245,5 +245,5 @@ void setupGlobalOemFanControl() oem::obmcOemNumber, oem::Cmd::fanManualCmd); router->registerHandler(oem::obmcOemNumber, oem::Cmd::fanManualCmd, - ManualModeControl); + manualModeControl); } |

