mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-25 14:03:40 +00:00
rtl8188eu: Convert typedef LED_CTL_MODE to enum LED_CTL_MODE
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
2e6130080e
commit
9d0ff170d0
2 changed files with 19 additions and 19 deletions
|
@ -1047,7 +1047,7 @@ SwLedBlink6(
|
||||||
static void
|
static void
|
||||||
SwLedControlMode0(
|
SwLedControlMode0(
|
||||||
_adapter *padapter,
|
_adapter *padapter,
|
||||||
LED_CTL_MODE LedAction
|
enum LED_CTL_MODE LedAction
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct led_priv *ledpriv = &(padapter->ledpriv);
|
struct led_priv *ledpriv = &(padapter->ledpriv);
|
||||||
|
@ -1162,7 +1162,7 @@ SwLedControlMode0(
|
||||||
static void
|
static void
|
||||||
SwLedControlMode1(
|
SwLedControlMode1(
|
||||||
_adapter *padapter,
|
_adapter *padapter,
|
||||||
LED_CTL_MODE LedAction
|
enum LED_CTL_MODE LedAction
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct led_priv *ledpriv = &(padapter->ledpriv);
|
struct led_priv *ledpriv = &(padapter->ledpriv);
|
||||||
|
@ -1427,8 +1427,8 @@ SwLedControlMode1(
|
||||||
/* Arcadyan/Sitecom , added by chiyoko, 20090216 */
|
/* Arcadyan/Sitecom , added by chiyoko, 20090216 */
|
||||||
static void
|
static void
|
||||||
SwLedControlMode2(
|
SwLedControlMode2(
|
||||||
_adapter *padapter,
|
_adapter *padapter,
|
||||||
LED_CTL_MODE LedAction
|
enum LED_CTL_MODE LedAction
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct led_priv *ledpriv = &(padapter->ledpriv);
|
struct led_priv *ledpriv = &(padapter->ledpriv);
|
||||||
|
@ -1592,8 +1592,8 @@ SwLedControlMode2(
|
||||||
/* COREGA, added by chiyoko, 20090316 */
|
/* COREGA, added by chiyoko, 20090316 */
|
||||||
static void
|
static void
|
||||||
SwLedControlMode3(
|
SwLedControlMode3(
|
||||||
_adapter *padapter,
|
_adapter *padapter,
|
||||||
LED_CTL_MODE LedAction
|
enum LED_CTL_MODE LedAction
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct led_priv *ledpriv = &(padapter->ledpriv);
|
struct led_priv *ledpriv = &(padapter->ledpriv);
|
||||||
|
@ -1771,8 +1771,8 @@ SwLedControlMode2(
|
||||||
/* Edimax-Belkin, added by chiyoko, 20090413 */
|
/* Edimax-Belkin, added by chiyoko, 20090413 */
|
||||||
static void
|
static void
|
||||||
SwLedControlMode4(
|
SwLedControlMode4(
|
||||||
_adapter *padapter,
|
_adapter *padapter,
|
||||||
LED_CTL_MODE LedAction
|
enum LED_CTL_MODE LedAction
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct led_priv *ledpriv = &(padapter->ledpriv);
|
struct led_priv *ledpriv = &(padapter->ledpriv);
|
||||||
|
@ -2103,8 +2103,8 @@ SwLedControlMode4(
|
||||||
/* Sercomm-Belkin, added by chiyoko, 20090415 */
|
/* Sercomm-Belkin, added by chiyoko, 20090415 */
|
||||||
static void
|
static void
|
||||||
SwLedControlMode5(
|
SwLedControlMode5(
|
||||||
_adapter *padapter,
|
_adapter *padapter,
|
||||||
LED_CTL_MODE LedAction
|
enum LED_CTL_MODE LedAction
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct led_priv *ledpriv = &(padapter->ledpriv);
|
struct led_priv *ledpriv = &(padapter->ledpriv);
|
||||||
|
@ -2185,8 +2185,8 @@ SwLedControlMode5(
|
||||||
/* WNC-Corega, added by chiyoko, 20090902 */
|
/* WNC-Corega, added by chiyoko, 20090902 */
|
||||||
static void
|
static void
|
||||||
SwLedControlMode6(
|
SwLedControlMode6(
|
||||||
_adapter *padapter,
|
_adapter *padapter,
|
||||||
LED_CTL_MODE LedAction
|
enum LED_CTL_MODE LedAction
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct led_priv *ledpriv = &(padapter->ledpriv);
|
struct led_priv *ledpriv = &(padapter->ledpriv);
|
||||||
|
@ -2265,8 +2265,8 @@ void BlinkHandler(PLED_871x pLed)
|
||||||
|
|
||||||
void
|
void
|
||||||
LedControl871x(
|
LedControl871x(
|
||||||
_adapter *padapter,
|
_adapter *padapter,
|
||||||
LED_CTL_MODE LedAction
|
enum LED_CTL_MODE LedAction
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct led_priv *ledpriv = &(padapter->ledpriv);
|
struct led_priv *ledpriv = &(padapter->ledpriv);
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
// 060421, rcnjko: Customized for Sercomm Printer Server case.
|
// 060421, rcnjko: Customized for Sercomm Printer Server case.
|
||||||
#define LED_CM3_BLINK_INTERVAL 1500
|
#define LED_CM3_BLINK_INTERVAL 1500
|
||||||
|
|
||||||
typedef enum _LED_CTL_MODE{
|
enum LED_CTL_MODE {
|
||||||
LED_CTL_POWER_ON = 1,
|
LED_CTL_POWER_ON = 1,
|
||||||
LED_CTL_LINK = 2,
|
LED_CTL_LINK = 2,
|
||||||
LED_CTL_NO_LINK = 3,
|
LED_CTL_NO_LINK = 3,
|
||||||
|
@ -71,7 +71,7 @@ typedef enum _LED_CTL_MODE{
|
||||||
LED_CTL_STOP_WPS_FAIL = 12, //added for ALPHA
|
LED_CTL_STOP_WPS_FAIL = 12, //added for ALPHA
|
||||||
LED_CTL_STOP_WPS_FAIL_OVERLAP = 13, //added for BELKIN
|
LED_CTL_STOP_WPS_FAIL_OVERLAP = 13, //added for BELKIN
|
||||||
LED_CTL_CONNECTION_NO_TRANSFER = 14,
|
LED_CTL_CONNECTION_NO_TRANSFER = 14,
|
||||||
}LED_CTL_MODE;
|
};
|
||||||
|
|
||||||
typedef enum _LED_STATE_871x{
|
typedef enum _LED_STATE_871x{
|
||||||
LED_UNKNOWN = 0,
|
LED_UNKNOWN = 0,
|
||||||
|
@ -156,8 +156,8 @@ typedef enum _LED_STRATEGY_871x{
|
||||||
|
|
||||||
void
|
void
|
||||||
LedControl871x(
|
LedControl871x(
|
||||||
_adapter *padapter,
|
_adapter *padapter,
|
||||||
LED_CTL_MODE LedAction
|
enum LED_CTL_MODE LedAction
|
||||||
);
|
);
|
||||||
|
|
||||||
struct led_priv{
|
struct led_priv{
|
||||||
|
@ -166,7 +166,7 @@ struct led_priv{
|
||||||
LED_871x SwLed1;
|
LED_871x SwLed1;
|
||||||
LED_STRATEGY_871x LedStrategy;
|
LED_STRATEGY_871x LedStrategy;
|
||||||
u8 bRegUseLed;
|
u8 bRegUseLed;
|
||||||
void (*LedControlHandler)(_adapter *padapter, LED_CTL_MODE LedAction);
|
void (*LedControlHandler)(_adapter *padapter, enum LED_CTL_MODE LedAction);
|
||||||
/* add for led controll */
|
/* add for led controll */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue