staging: vt6656: camel case cleanup MACvWriteWord
authorMalcolm Priestley <tvboxspy@gmail.com>
Fri, 23 May 2014 17:00:07 +0000 (18:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 19:46:08 +0000 (04:46 +0900)
camel case changes
pDevice -> priv
byRegOfs -> reg_ofs
wData -> word
pbyData -> data

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/mac.c

index bb0c909559342712e9d7488b091e07cf15701016..a195703a69e420e1a66e9e522459773cec6ba67b 100644 (file)
@@ -203,21 +203,15 @@ void MACvRegBitsOn(struct vnt_private *priv, u8 reg_ofs, u8 bits)
                reg_ofs, MESSAGE_REQUEST_MACREG, ARRAY_SIZE(data), data);
 }
 
-void MACvWriteWord(struct vnt_private *pDevice, u8 byRegOfs, u16 wData)
+void MACvWriteWord(struct vnt_private *priv, u8 reg_ofs, u16 word)
 {
-       u8 pbyData[2];
-
-    pbyData[0] = (u8)(wData & 0xff);
-    pbyData[1] = (u8)(wData >> 8);
+       u8 data[2];
 
-    CONTROLnsRequestOut(pDevice,
-                        MESSAGE_TYPE_WRITE,
-                        byRegOfs,
-                        MESSAGE_REQUEST_MACREG,
-                       ARRAY_SIZE(pbyData),
-                        pbyData
-                        );
+       data[0] = (u8)(word & 0xff);
+       data[1] = (u8)(word >> 8);
 
+       CONTROLnsRequestOut(priv, MESSAGE_TYPE_WRITE,
+               reg_ofs, MESSAGE_REQUEST_MACREG, ARRAY_SIZE(data), data);
 }
 
 void MACvWriteBSSIDAddress(struct vnt_private *pDevice, u8 *pbyEtherAddr)