staging: ks7010: avoid camel cases for MichaelInitFunction
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 28 Mar 2018 15:24:18 +0000 (17:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Mar 2018 09:49:11 +0000 (11:49 +0200)
This commit avoid camel cases in MichaelInitFunction signature and params
renaming it to michael_init.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/michael_mic.c

index f7950436cfc7adbc3c8519db841dfd132d3128a0..bc92db1439778623ecf0bfc6da85c6de7b0a2dc2 100644 (file)
@@ -35,15 +35,14 @@ do {                                        \
        A->m_bytes = 0;         \
 } while (0)
 
-static
-void MichaelInitializeFunction(struct michael_mic_t *Mic, uint8_t *key)
+static void michael_init(struct michael_mic_t *mic, uint8_t *key)
 {
        // Set the key
-       Mic->k0 = getUInt32(key, 0);
-       Mic->k1 = getUInt32(key, 4);
+       mic->k0 = getUInt32(key, 0);
+       mic->k1 = getUInt32(key, 4);
 
        //clear();
-       MichaelClear(Mic);
+       MichaelClear(mic);
 }
 
 #define MichaelBlockFunction(L, R)                             \
@@ -137,7 +136,7 @@ void michael_mic_function(struct michael_mic_t *mic, u8 *key,
         * |DA|SA|Priority|0 |Data|M0|M1|M2|M3|M4|M5|M6|M7|
         * +--+--+--------+--+----+--+--+--+--+--+--+--+--+
         */
-       MichaelInitializeFunction(mic, key);
+       michael_init(mic, key);
        MichaelAppend(mic, (uint8_t *)data, 12);        /* |DA|SA| */
        MichaelAppend(mic, pad_data, 4);        /* |Priority|0|0|0| */
        MichaelAppend(mic, (uint8_t *)(data + 12), len - 12);   /* |Data| */