rtl8188eu: Convert "typedef struct {}LED_871x" to "struct PLED_871x"

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2013-07-22 17:07:13 -05:00
parent f29537124a
commit 7c128d19a1
6 changed files with 45 additions and 45 deletions

View file

@ -29,7 +29,7 @@
//================================================================================
void rtl8188eu_InitSwLeds(PADAPTER padapter);
void rtl8188eu_DeInitSwLeds(PADAPTER padapter);
void SwLedOn(_adapter *padapter, PLED_871x pLed);
void SwLedOff(_adapter *padapter, PLED_871x pLed);
void SwLedOn(_adapter *padapter, struct LED_871x * pLed);
void SwLedOff(_adapter *padapter, struct LED_871x * pLed);
#endif

View file

@ -748,7 +748,7 @@ struct SetChannelPlan_param
/*H2C Handler index: 60 */
struct LedBlink_param
{
PLED_871x pLed;
struct LED_871x * pLed;
};
/*H2C Handler index: 61 */
@ -832,7 +832,7 @@ u8 rtw_chk_hi_queue_cmd(_adapter*padapter);
u8 rtw_set_ch_cmd(_adapter*padapter, u8 ch, u8 bw, u8 ch_offset, u8 enqueue);
extern u8 rtw_set_chplan_cmd(_adapter*padapter, u8 chplan, u8 enqueue);
extern u8 rtw_led_blink_cmd(_adapter*padapter, PLED_871x pLed);
extern u8 rtw_led_blink_cmd(_adapter*padapter, struct LED_871x * pLed);
extern u8 rtw_set_csa_cmd(_adapter*padapter, u8 new_ch_no);
extern u8 rtw_tdls_cmd(_adapter*padapter, u8 *addr, u8 option);

View file

@ -101,7 +101,7 @@ enum LED_PIN_871x {
LED_PIN_GPIO0 = 4,
};
typedef struct _LED_871x{
struct LED_871x {
_adapter *padapter;
enum LED_PIN_871x LedPin; // Identify how to implement this SW led.
@ -129,14 +129,14 @@ typedef struct _LED_871x{
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
_workitem BlinkWorkItem; // Workitem used by BlinkTimer to manipulate H/W to blink LED.
#endif
} LED_871x, *PLED_871x;
};
#define IS_LED_WPS_BLINKING(_LED_871x) (((PLED_871x)_LED_871x)->CurrLedState==LED_BLINK_WPS \
|| ((PLED_871x)_LED_871x)->CurrLedState==LED_BLINK_WPS_STOP \
|| ((PLED_871x)_LED_871x)->bLedWPSBlinkInProgress)
#define IS_LED_WPS_BLINKING(_LED_871x) (((struct LED_871x *)_LED_871x)->CurrLedState==LED_BLINK_WPS \
|| ((struct LED_871x *)_LED_871x)->CurrLedState==LED_BLINK_WPS_STOP \
|| ((struct LED_871x *)_LED_871x)->bLedWPSBlinkInProgress)
#define IS_LED_BLINKING(_LED_871x) (((PLED_871x)_LED_871x)->bLedWPSBlinkInProgress \
||((PLED_871x)_LED_871x)->bLedScanBlinkInProgress)
#define IS_LED_BLINKING(_LED_871x) (((struct LED_871x *)_LED_871x)->bLedWPSBlinkInProgress \
||((struct LED_871x *)_LED_871x)->bLedScanBlinkInProgress)
//================================================================================
// LED customization.
@ -162,8 +162,8 @@ LedControl871x(
struct led_priv{
/* add for led controll */
LED_871x SwLed0;
LED_871x SwLed1;
struct LED_871x SwLed0;
struct LED_871x SwLed1;
LED_STRATEGY_871x LedStrategy;
u8 bRegUseLed;
void (*LedControlHandler)(_adapter *padapter, enum LED_CTL_MODE LedAction);
@ -179,21 +179,21 @@ struct led_priv{
void BlinkTimerCallback(void *data);
void BlinkWorkItemCallback(struct work_struct *work);
void ResetLedStatus(PLED_871x pLed);
void ResetLedStatus(struct LED_871x * pLed);
void
InitLed871x(
_adapter *padapter,
PLED_871x pLed,
struct LED_871x *pLed,
enum LED_PIN_871x LedPin
);
void
DeInitLed871x(
PLED_871x pLed
struct LED_871x * pLed
);
//hal...
extern void BlinkHandler(PLED_871x pLed);
extern void BlinkHandler(struct LED_871x * pLed);
#endif //__RTW_LED_H_