fix struct and variable case styles
Fix the following clang-tidy warnings:
```
/data0/jenkins/workspace/ci-repository/openbmc/estoraged/include/sanitize.hpp:41:37: error: invalid case style for struct 'mmc_io_multi_cmd_erase' [readability-identifier-naming,-warnings-as-errors]
41 | struct mmc_io_multi_cmd_erase data) = 0;
/data0/jenkins/workspace/ci-repository/openbmc/estoraged/src/test/include/estoraged_test.hpp:48:30: error: invalid case style for parameter 'cipher_mode' [readability-identifier-naming,-warnings-as-errors]
48 | const char* cipher_mode, const char* uuid,
/data0/jenkins/workspace/ci-repository/openbmc/estoraged/src/test/include/estoraged_test.hpp:49:30: error: invalid case style for parameter 'volume_key' [readability-identifier-naming,-warnings-as-errors]
49 | const char* volume_key, size_t volume_key_size, void* params),
/data0/jenkins/workspace/ci-repository/openbmc/estoraged/src/test/include/estoraged_test.hpp:49:49: error: invalid case style for parameter 'volume_key_size' [readability-identifier-naming,-warnings-as-errors]
49 | const char* volume_key, size_t volume_key_size, void* params),
/data0/jenkins/workspace/ci-repository/openbmc/estoraged/src/test/include/estoraged_test.hpp:55:25: error: invalid case style for parameter 'passphrase_size' [readability-identifier-naming,-warnings-as-errors]
/data0/jenkins/workspace/ci-repository/openbmc/estoraged/src/test/include/estoraged_test.hpp:59:56: error: invalid case style for parameter 'requested_type' [readability-identifier-naming,-warnings-as-errors]
59 | (struct crypt_device * cd, const char* requested_type,
```
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ib4c685db2037514b0517e42369b1d66b49b00e03
diff --git a/include/sanitize.hpp b/include/sanitize.hpp
index 48b49aa..f7fe2a1 100644
--- a/include/sanitize.hpp
+++ b/include/sanitize.hpp
@@ -38,7 +38,7 @@
* @param[in] mmc_io_mutli_cmd - many eMMC cmd
*/
virtual int doIoctlMulti(std::string_view devPath, unsigned long request,
- struct mmc_io_multi_cmd_erase data) = 0;
+ struct MmcIoMultiCmdErase data) = 0;
virtual ~IOCTLWrapperInterface() = default;
IOCTLWrapperInterface() = default;
@@ -56,7 +56,7 @@
int doIoctl(std::string_view devPath, unsigned long request,
struct mmc_ioc_cmd data) override;
int doIoctlMulti(std::string_view devPath, unsigned long request,
- struct mmc_io_multi_cmd_erase data) override;
+ struct MmcIoMultiCmdErase data) override;
~IOCTLWrapperImpl() override = default;
IOCTLWrapperImpl() = default;
@@ -113,7 +113,7 @@
// can't use the real mmc_ioc_multi_cmd b/c of zero length array
// see uapi/linux/mmc/ioctl.h
-struct mmc_io_multi_cmd_erase
+struct MmcIoMultiCmdErase
{
uint64_t num_of_cmds;
struct mmc_ioc_cmd cmds[3]; // NOLINT (c arrays usage)