staging: vt6656: clean up MACvWriteWord
PATCH 7/13 staging: vt6656: clean up MACvWriteWord
Remove internal white space and camel case.
Camel case changes;
pDevice -> priv
byRegOfs -> offset
wData -> word
pbyData -> data
Functional change
CONTROLnsRequestOut Length = ARRAY_SIZE(data) offset changed to u16 to match CONTROLnsRequestOut Value size.
Signed-off-by Malcolm Priestley <[email protected]>
--- drivers/staging/vt6656/mac.c | 18 ++++++------------ drivers/staging/vt6656/mac.h | 2 +- 2 files changed, 7 insertions(+), 13 deletions(-)
drivers/staging/vt6656/mac.c +6 -12
@@ -212,21 +212,15 @@ void MACvRegBitsOn(struct vnt_private *priv, u16 offset, u8 bits) offset, MESSAGE_REQUEST_MACREG, ARRAY_SIZE(data), data); } -void MACvWriteWord (struct vnt_private *pDevice,u8 byRegOfs,u16 wData) +void MACvWriteWord (struct vnt_private *priv,u16 offset,u16 word) { -u8 pbyData[2 ]; +u8 data[2 ]; - pbyData[0 ] = (u8)(wData &0xff ); - pbyData[1 ] = (u8)(wData >>8 ); - -CONTROLnsRequestOut (pDevice, -MESSAGE_TYPE_WRITE , - byRegOfs, -MESSAGE_REQUEST_MACREG , -2 , - pbyData - ); + data[0 ] = (u8)(word &0xff ); + data[1 ] = (u8)(word >>8 ); +CONTROLnsRequestOut (priv,MESSAGE_TYPE_WRITE , + offset,MESSAGE_REQUEST_MACREG ,ARRAY_SIZE (data), data); }void MACvWriteBSSIDAddress (struct vnt_private *pDevice,u8 *pbyEtherAddr)
drivers/staging/vt6656/mac.h +1 -1
@@ -410,7 +410,7 @@ void MACvDisableKeyEntry(struct vnt_private *, u32);void MACvSetKeyEntry (struct vnt_private *,u16 ,u32 ,u16 ,u8 *,u32 *);void MACvRegBitsOff (struct vnt_private *,u16 ,u8 );void MACvRegBitsOn (struct vnt_private *,u16 ,u8 ); -void MACvWriteWord (struct vnt_private *,u8 ,u16 ); +void MACvWriteWord (struct vnt_private *,u16 ,u16 );void MACvWriteBSSIDAddress (struct vnt_private *,u8 *);void MACvEnableProtectMD (struct vnt_private *);void MACvDisableProtectMD (struct vnt_private *);
Signature · 1 line
1.8.1.2