]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: ccree: use snake_case for hash enums
authorGilad Ben-Yossef <gilad@benyossef.com>
Sun, 4 Jun 2017 08:02:32 +0000 (11:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Jun 2017 08:16:25 +0000 (10:16 +0200)
Hash enum were named using CamelCase, move over to snake_case.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/cc_hw_queue_defs.h
drivers/staging/ccree/hash_defs.h

index 8dc9b6ed07f94ede5f67665ee0f6f9938cdfd3bb..1cbd2e12c0ab2811160c991d8c101223e47fc346 100644 (file)
@@ -505,7 +505,7 @@ static inline void set_cipher_config0(struct cc_hw_desc *pdesc,
  * @config: Any one of the modes defined in [CC7x-DESC]
  */
 static inline void set_cipher_config1(struct cc_hw_desc *pdesc,
-                                     enum HashConfig1Padding config)
+                                     enum cc_hash_conf_pad config)
 {
        pdesc->word[4] |= FIELD_PREP(WORD4_CIPHER_CONF1, config);
 }
@@ -598,7 +598,7 @@ static inline void set_setup_mode(struct cc_hw_desc *pdesc,
  * @config: Any one of the cipher do defined in [CC7x-DESC]
  */
 static inline void set_cipher_do(struct cc_hw_desc *pdesc,
-                                enum HashCipherDoPadding config)
+                                enum cc_hash_cipher_pad config)
 {
        pdesc->word[4] |= FIELD_PREP(WORD4_CIPHER_DO,
                                (config & HW_KEY_MASK_CIPHER_DO));
index 9e01219f2b2ae9ba208de3aae71a94aa71148d42..872ed9756d272c092c9104767a2fa2b4dcf895f0 100644 (file)
 #define HASH_LARVAL_SHA512 0x5be0cd19, 0x137e2179, 0x1f83d9ab, 0xfb41bd6b, 0x9b05688c, 0x2b3e6c1f, 0x510e527f, 0xade682d1, 0xa54ff53a, 0x5f1d36f1, 0x3c6ef372, 0xfe94f82b, 0xbb67ae85, 0x84caa73b, 0x6a09e667, 0xf3bcc908
 #endif
 
-enum HashConfig1Padding {
+enum cc_hash_conf_pad {
        HASH_PADDING_DISABLED = 0,
        HASH_PADDING_ENABLED = 1,
        HASH_DIGEST_RESULT_LITTLE_ENDIAN = 2,
        HASH_CONFIG1_PADDING_RESERVE32 = S32_MAX,
 };
 
-enum HashCipherDoPadding {
+enum cc_hash_cipher_pad {
        DO_NOT_PAD = 0,
        DO_PAD = 1,
        HASH_CIPHER_DO_PADDING_RESERVE32 = S32_MAX,