Commit d4279a9f authored by Lars Lindley's avatar Lars Lindley Committed by Greg Kroah-Hartman

Staging: winbond: wb35reg_f.h Coding style fixes.

I fixed the checkpatch things except a couple of long lines.
I also removed hungarian notation and CamelCase from the argument names
and some "commented away" code.
Signed-off-by: default avatarLars Lindley <lindley@coyote.org>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Acked-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 89343a0e
...@@ -3,59 +3,63 @@ ...@@ -3,59 +3,63 @@
#include "wbhal_s.h" #include "wbhal_s.h"
//==================================== /*
// Interface function declare * ====================================
//==================================== * Interface function declare
unsigned char Wb35Reg_initial( struct hw_data * pHwData ); * ====================================
void Uxx_power_on_procedure( struct hw_data * pHwData ); */
void Uxx_power_off_procedure( struct hw_data * pHwData ); unsigned char Wb35Reg_initial(struct hw_data *hw_data);
void Uxx_ReadEthernetAddress( struct hw_data * pHwData ); void Uxx_power_on_procedure(struct hw_data *hw_data);
void Dxx_initial( struct hw_data * pHwData ); void Uxx_power_off_procedure(struct hw_data *hw_data);
void Mxx_initial( struct hw_data * pHwData ); void Uxx_ReadEthernetAddress(struct hw_data *hw_data);
void RFSynthesizer_initial( struct hw_data * pHwData ); void Dxx_initial(struct hw_data *hw_data);
//void RFSynthesizer_SwitchingChannel( struct hw_data * pHwData, s8 Channel ); void Mxx_initial(struct hw_data *hw_data);
void RFSynthesizer_SwitchingChannel( struct hw_data * pHwData, struct chan_info Channel ); void RFSynthesizer_initial(struct hw_data *hw_data);
void BBProcessor_initial( struct hw_data * pHwData ); void RFSynthesizer_SwitchingChannel(struct hw_data *hw_data, struct chan_info channel);
void BBProcessor_RateChanging( struct hw_data * pHwData, u8 rate ); // 20060613.1 void BBProcessor_initial(struct hw_data *hw_data);
//void RF_RateChanging( struct hw_data * pHwData, u8 rate ); // 20060626.5.c Add void BBProcessor_RateChanging(struct hw_data *hw_data, u8 rate);
u8 RFSynthesizer_SetPowerIndex( struct hw_data * pHwData, u8 PowerIndex ); u8 RFSynthesizer_SetPowerIndex(struct hw_data *hw_data, u8 power_index);
u8 RFSynthesizer_SetMaxim2828_24Power( struct hw_data *, u8 index ); u8 RFSynthesizer_SetMaxim2828_24Power(struct hw_data *, u8 index);
u8 RFSynthesizer_SetMaxim2828_50Power( struct hw_data *, u8 index ); u8 RFSynthesizer_SetMaxim2828_50Power(struct hw_data *, u8 index);
u8 RFSynthesizer_SetMaxim2827_24Power( struct hw_data *, u8 index ); u8 RFSynthesizer_SetMaxim2827_24Power(struct hw_data *, u8 index);
u8 RFSynthesizer_SetMaxim2827_50Power( struct hw_data *, u8 index ); u8 RFSynthesizer_SetMaxim2827_50Power(struct hw_data *, u8 index);
u8 RFSynthesizer_SetMaxim2825Power( struct hw_data *, u8 index ); u8 RFSynthesizer_SetMaxim2825Power(struct hw_data *, u8 index);
u8 RFSynthesizer_SetAiroha2230Power( struct hw_data *, u8 index ); u8 RFSynthesizer_SetAiroha2230Power(struct hw_data *, u8 index);
u8 RFSynthesizer_SetAiroha7230Power( struct hw_data *, u8 index ); u8 RFSynthesizer_SetAiroha7230Power(struct hw_data *, u8 index);
u8 RFSynthesizer_SetWinbond242Power( struct hw_data *, u8 index ); u8 RFSynthesizer_SetWinbond242Power(struct hw_data *, u8 index);
void GetTxVgaFromEEPROM( struct hw_data * pHwData ); void GetTxVgaFromEEPROM(struct hw_data *hw_data);
void EEPROMTxVgaAdjust( struct hw_data * pHwData ); // 20060619.5 Add void EEPROMTxVgaAdjust(struct hw_data *hw_data);
#define RFWriteControlData( _A, _V ) Wb35Reg_Write( _A, 0x0864, _V ) #define RFWriteControlData(_A, _V) Wb35Reg_Write(_A, 0x0864, _V)
void Wb35Reg_destroy( struct hw_data * pHwData ); void Wb35Reg_destroy(struct hw_data *hw_data);
unsigned char Wb35Reg_Read( struct hw_data * pHwData, u16 RegisterNo, u32 * pRegisterValue ); unsigned char Wb35Reg_Read(struct hw_data *hw_data, u16 register_no, u32 *register_value);
unsigned char Wb35Reg_ReadSync( struct hw_data * pHwData, u16 RegisterNo, u32 * pRegisterValue ); unsigned char Wb35Reg_ReadSync(struct hw_data *hw_data, u16 register_no, u32 *register_value);
unsigned char Wb35Reg_Write( struct hw_data * pHwData, u16 RegisterNo, u32 RegisterValue ); unsigned char Wb35Reg_Write(struct hw_data *hw_data, u16 register_no, u32 register_value);
unsigned char Wb35Reg_WriteSync( struct hw_data * pHwData, u16 RegisterNo, u32 RegisterValue ); unsigned char Wb35Reg_WriteSync(struct hw_data *hw_data, u16 register_no, u32 register_value);
unsigned char Wb35Reg_WriteWithCallbackValue( struct hw_data * pHwData, unsigned char Wb35Reg_WriteWithCallbackValue(struct hw_data *hw_data,
u16 RegisterNo, u16 register_no,
u32 RegisterValue, u32 register_value,
s8 *pValue, s8 *value,
s8 Len); s8 len);
unsigned char Wb35Reg_BurstWrite( struct hw_data * pHwData, u16 RegisterNo, u32 * pRegisterData, u8 NumberOfData, u8 Flag ); unsigned char Wb35Reg_BurstWrite(struct hw_data *hw_data,
u16 register_no,
void Wb35Reg_EP0VM( struct hw_data * pHwData ); u32 *register_data,
void Wb35Reg_EP0VM_start( struct hw_data * pHwData ); u8 number_of_data,
u8 flag);
void Wb35Reg_EP0VM(struct hw_data *hw_data);
void Wb35Reg_EP0VM_start(struct hw_data *hw_data);
void Wb35Reg_EP0VM_complete(struct urb *urb); void Wb35Reg_EP0VM_complete(struct urb *urb);
u32 BitReverse( u32 dwData, u32 DataLength); u32 BitReverse(u32 data, u32 data_length);
void CardGetMulticastBit( u8 Address[MAC_ADDR_LENGTH], u8 *Byte, u8 *Value ); void CardGetMulticastBit(u8 address[MAC_ADDR_LENGTH], u8 *byte, u8 *value);
u32 CardComputeCrc( u8 * Buffer, u32 Length ); u32 CardComputeCrc(u8 *buffer, u32 length);
void Wb35Reg_phy_calibration( struct hw_data * pHwData ); void Wb35Reg_phy_calibration(struct hw_data *hw_data);
void Wb35Reg_Update( struct hw_data * pHwData, u16 RegisterNo, u32 RegisterValue ); void Wb35Reg_Update(struct hw_data *hw_data, u16 register_no, u32 register_value);
unsigned char adjust_TXVGA_for_iq_mag( struct hw_data * pHwData ); unsigned char adjust_TXVGA_for_iq_mag(struct hw_data *hw_data);
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment