summaryrefslogtreecommitdiffstats
path: root/user_channel/channelcommands.cpp
diff options
context:
space:
mode:
authorRichard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>2018-12-20 15:58:04 +0530
committerRichard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>2018-12-22 02:13:37 +0000
commit48e555857f81b9dcfe1ccfe7a47adde40f1f2c00 (patch)
tree6de95073d4215fecc3eb4781bc3a56840b20a232 /user_channel/channelcommands.cpp
parent0021f84939a8e82ae9ed04581c2c18e86d0f0b51 (diff)
downloadphosphor-host-ipmid-48e555857f81b9dcfe1ccfe7a47adde40f1f2c00.tar.gz
phosphor-host-ipmid-48e555857f81b9dcfe1ccfe7a47adde40f1f2c00.zip
Change struct names to UpperCamelCase
Change struct names to UpperCamelCase to align with OpenBMC coding guidelines Change-Id: Ib71768be45e57556a26b14b64adec98db3bc7762 Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
Diffstat (limited to 'user_channel/channelcommands.cpp')
-rw-r--r--user_channel/channelcommands.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/user_channel/channelcommands.cpp b/user_channel/channelcommands.cpp
index a0caeb6..fd46837 100644
--- a/user_channel/channelcommands.cpp
+++ b/user_channel/channelcommands.cpp
@@ -27,11 +27,11 @@ using namespace phosphor::logging;
namespace ipmi
{
-/** @struct setChannelAccessReq
+/** @struct SetChannelAccessReq
*
* Structure for set channel access request command (refer spec sec 22.22)
*/
-struct setChannelAccessReq
+struct SetChannelAccessReq
{
#if BYTE_ORDER == LITTLE_ENDIAN
uint8_t chNum : 4;
@@ -60,11 +60,11 @@ struct setChannelAccessReq
} __attribute__((packed));
-/** @struct getChannelAccessReq
+/** @struct GetChannelAccessReq
*
* Structure for get channel access request command (refer spec sec 22.23)
*/
-struct getChannelAccessReq
+struct GetChannelAccessReq
{
#if BYTE_ORDER == LITTLE_ENDIAN
uint8_t chNum : 4;
@@ -80,11 +80,11 @@ struct getChannelAccessReq
#endif
} __attribute__((packed));
-/** @struct getChannelAccessResp
+/** @struct GetChannelAccessResp
*
* Structure for get channel access response command (refer spec sec 22.23)
*/
-struct getChannelAccessResp
+struct GetChannelAccessResp
{
#if BYTE_ORDER == LITTLE_ENDIAN
uint8_t accessMode : 3;
@@ -106,11 +106,11 @@ struct getChannelAccessResp
#endif
} __attribute__((packed));
-/** @struct getChannelInfoReq
+/** @struct GetChannelInfoReq
*
* Structure for get channel info request command (refer spec sec 22.24)
*/
-struct getChannelInfoReq
+struct GetChannelInfoReq
{
#if BYTE_ORDER == LITTLE_ENDIAN
uint8_t chNum : 4;
@@ -122,11 +122,11 @@ struct getChannelInfoReq
#endif
} __attribute__((packed));
-/** @struct getChannelInfoResp
+/** @struct GetChannelInfoResp
*
* Structure for get channel info response command (refer spec sec 22.24)
*/
-struct getChannelInfoResp
+struct GetChannelInfoResp
{
#if BYTE_ORDER == LITTLE_ENDIAN
uint8_t chNum : 4;
@@ -158,7 +158,7 @@ ipmi_ret_t ipmiSetChannelAccess(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
ipmi_data_len_t data_len,
ipmi_context_t context)
{
- const setChannelAccessReq* req = static_cast<setChannelAccessReq*>(request);
+ const SetChannelAccessReq* req = static_cast<SetChannelAccessReq*>(request);
size_t reqLength = *data_len;
*data_len = 0;
@@ -263,7 +263,7 @@ ipmi_ret_t ipmiGetChannelAccess(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
ipmi_data_len_t data_len,
ipmi_context_t context)
{
- const getChannelAccessReq* req = static_cast<getChannelAccessReq*>(request);
+ const GetChannelAccessReq* req = static_cast<GetChannelAccessReq*>(request);
size_t reqLength = *data_len;
*data_len = 0;
@@ -293,7 +293,7 @@ ipmi_ret_t ipmiGetChannelAccess(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
return IPMI_CC_ACTION_NOT_SUPPORTED_FOR_CHANNEL;
}
- getChannelAccessResp* resp = static_cast<getChannelAccessResp*>(response);
+ GetChannelAccessResp* resp = static_cast<GetChannelAccessResp*>(response);
std::fill(reinterpret_cast<uint8_t*>(resp),
reinterpret_cast<uint8_t*>(resp) + sizeof(*resp), 0);
@@ -329,7 +329,7 @@ ipmi_ret_t ipmiGetChannelInfo(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
ipmi_request_t request, ipmi_response_t response,
ipmi_data_len_t data_len, ipmi_context_t context)
{
- const getChannelInfoReq* req = static_cast<getChannelInfoReq*>(request);
+ const GetChannelInfoReq* req = static_cast<GetChannelInfoReq*>(request);
size_t reqLength = *data_len;
*data_len = 0;
@@ -355,7 +355,7 @@ ipmi_ret_t ipmiGetChannelInfo(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
return IPMI_CC_PARM_OUT_OF_RANGE;
}
- getChannelInfoResp* resp = static_cast<getChannelInfoResp*>(response);
+ GetChannelInfoResp* resp = static_cast<GetChannelInfoResp*>(response);
std::fill(reinterpret_cast<uint8_t*>(resp),
reinterpret_cast<uint8_t*>(resp) + sizeof(*resp), 0);
OpenPOWER on IntegriCloud