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

@ -1611,7 +1611,7 @@ _func_exit_;
return res;
}
u8 rtw_led_blink_cmd(_adapter*padapter, PLED_871x pLed)
u8 rtw_led_blink_cmd(_adapter*padapter, struct LED_871x * pLed)
{
struct cmd_obj* pcmdobj;
struct LedBlink_param *ledBlink_param;

View file

@ -28,7 +28,7 @@
/* */
void BlinkTimerCallback(void *data)
{
PLED_871x pLed = (PLED_871x)data;
struct LED_871x * pLed = (struct LED_871x *)data;
_adapter *padapter = pLed->padapter;
if ( (padapter->bSurpriseRemoved == true) || ( padapter->bDriverStopped == true))
@ -46,7 +46,7 @@ void BlinkTimerCallback(void *data)
/* */
void BlinkWorkItemCallback(struct work_struct *work)
{
PLED_871x pLed = container_of(work, LED_871x, BlinkWorkItem);
struct LED_871x * pLed = container_of(work, struct LED_871x, BlinkWorkItem);
BlinkHandler(pLed);
}
@ -54,7 +54,7 @@ void BlinkWorkItemCallback(struct work_struct *work)
/* Description: */
/* Reset status of LED_871x object. */
/* */
void ResetLedStatus(PLED_871x pLed) {
void ResetLedStatus(struct LED_871x * pLed) {
pLed->CurrLedState = RTW_LED_OFF; /* Current LED state. */
pLed->bLedOn = false; /* true if LED is ON, false if LED is OFF. */
@ -76,7 +76,7 @@ void ResetLedStatus(PLED_871x pLed) {
void
InitLed871x(
_adapter *padapter,
PLED_871x pLed,
struct LED_871x *pLed,
enum LED_PIN_871x LedPin
)
{
@ -97,7 +97,7 @@ InitLed871x(
/* */
void
DeInitLed871x(
PLED_871x pLed
struct LED_871x * pLed
)
{
_cancel_workitem_sync(&(pLed->BlinkWorkItem));
@ -112,12 +112,12 @@ DeInitLed871x(
/* It toggle off LED and schedule corresponding timer if necessary. */
/* */
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);
static void
SwLedBlink(
PLED_871x pLed
struct LED_871x * pLed
)
{
_adapter *padapter = pLed->padapter;
@ -235,13 +235,13 @@ SwLedBlink(
static void
SwLedBlink1(
PLED_871x pLed
struct LED_871x * pLed
)
{
_adapter *padapter = pLed->padapter;
struct led_priv *ledpriv = &(padapter->ledpriv);
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
PLED_871x pLed1 = &(ledpriv->SwLed1);
struct LED_871x * pLed1 = &(ledpriv->SwLed1);
u8 bStopBlinking = false;
/* Change LED according to BlinkingLedState specified. */
@ -410,7 +410,7 @@ SwLedBlink1(
static void
SwLedBlink2(
PLED_871x pLed
struct LED_871x * pLed
)
{
_adapter *padapter = pLed->padapter;
@ -532,7 +532,7 @@ SwLedBlink2(
static void
SwLedBlink3(
PLED_871x pLed
struct LED_871x * pLed
)
{
_adapter *padapter = pLed->padapter;
@ -703,13 +703,13 @@ SwLedBlink3(
static void
SwLedBlink4(
PLED_871x pLed
struct LED_871x * pLed
)
{
_adapter *padapter = pLed->padapter;
struct led_priv *ledpriv = &(padapter->ledpriv);
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
PLED_871x pLed1 = &(ledpriv->SwLed1);
struct LED_871x *pLed1 = &(ledpriv->SwLed1);
u8 bStopBlinking = false;
/* Change LED according to BlinkingLedState specified. */
@ -902,7 +902,7 @@ SwLedBlink4(
static void
SwLedBlink5(
PLED_871x pLed
struct LED_871x * pLed
)
{
_adapter *padapter = pLed->padapter;
@ -1020,7 +1020,7 @@ SwLedBlink5(
static void
SwLedBlink6(
PLED_871x pLed
struct LED_871x * pLed
)
{
_adapter *padapter = pLed->padapter;
@ -1049,7 +1049,7 @@ SwLedControlMode0(
)
{
struct led_priv *ledpriv = &(padapter->ledpriv);
PLED_871x pLed = &(ledpriv->SwLed1);
struct LED_871x *pLed = &(ledpriv->SwLed1);
/* Decide led state */
switch (LedAction)
@ -1164,7 +1164,7 @@ SwLedControlMode1(
)
{
struct led_priv *ledpriv = &(padapter->ledpriv);
PLED_871x pLed = &(ledpriv->SwLed0);
struct LED_871x * pLed = &(ledpriv->SwLed0);
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
switch (LedAction) {
@ -1431,7 +1431,7 @@ SwLedControlMode2(
{
struct led_priv *ledpriv = &(padapter->ledpriv);
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
PLED_871x pLed = &(ledpriv->SwLed0);
struct LED_871x *pLed = &(ledpriv->SwLed0);
switch (LedAction)
{
@ -1596,7 +1596,7 @@ SwLedControlMode2(
{
struct led_priv *ledpriv = &(padapter->ledpriv);
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
PLED_871x pLed = &(ledpriv->SwLed0);
struct LED_871x *pLed = &(ledpriv->SwLed0);
switch (LedAction)
{
@ -1775,8 +1775,8 @@ SwLedControlMode4(
{
struct led_priv *ledpriv = &(padapter->ledpriv);
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
PLED_871x pLed = &(ledpriv->SwLed0);
PLED_871x pLed1 = &(ledpriv->SwLed1);
struct LED_871x *pLed = &(ledpriv->SwLed0);
struct LED_871x *pLed1 = &(ledpriv->SwLed1);
switch (LedAction)
{
@ -2107,7 +2107,7 @@ SwLedControlMode5(
{
struct led_priv *ledpriv = &(padapter->ledpriv);
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
PLED_871x pLed = &(ledpriv->SwLed0);
struct LED_871x *pLed = &(ledpriv->SwLed0);
switch (LedAction) {
case LED_CTL_POWER_ON:
@ -2189,7 +2189,7 @@ SwLedControlMode6(
{
struct led_priv *ledpriv = &(padapter->ledpriv);
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
PLED_871x pLed0 = &(ledpriv->SwLed0);
struct LED_871x * pLed0 = &(ledpriv->SwLed0);
switch (LedAction)
{
@ -2218,7 +2218,7 @@ SwLedControlMode6(
/* Handler function of LED Blinking. */
/* We dispatch acture LED blink action according to LedStrategy. */
/* */
void BlinkHandler(PLED_871x pLed)
void BlinkHandler(struct LED_871x * pLed)
{
_adapter *padapter = pLed->padapter;
struct led_priv *ledpriv = &(padapter->ledpriv);

View file

@ -40,7 +40,7 @@
/* Description: */
/* Turn on LED according to LedPin specified. */
/* */
void SwLedOn(_adapter *padapter, PLED_871x pLed)
void SwLedOn(_adapter *padapter, struct LED_871x * pLed)
{
u8 LedCfg;
@ -72,7 +72,7 @@ void SwLedOn(_adapter *padapter, PLED_871x pLed)
/* Description: */
/* Turn off LED according to LedPin specified. */
/* */
void SwLedOff(_adapter *padapter, PLED_871x pLed)
void SwLedOff(_adapter *padapter, struct LED_871x * pLed)
{
u8 LedCfg;
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);

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_