diff options
Diffstat (limited to 'drivers/net/wireless/iwlegacy/iwl-core.h')
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-core.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl-core.h b/drivers/net/wireless/iwlegacy/iwl-core.h index 833376171207..5b2883f645ab 100644 --- a/drivers/net/wireless/iwlegacy/iwl-core.h +++ b/drivers/net/wireless/iwlegacy/iwl-core.h | |||
@@ -533,47 +533,47 @@ void il_free_geos(struct il_priv *il); | |||
533 | 533 | ||
534 | /*************** DRIVER STATUS FUNCTIONS *****/ | 534 | /*************** DRIVER STATUS FUNCTIONS *****/ |
535 | 535 | ||
536 | #define STATUS_HCMD_ACTIVE 0 /* host command in progress */ | 536 | #define S_HCMD_ACTIVE 0 /* host command in progress */ |
537 | /* 1 is unused (used to be STATUS_HCMD_SYNC_ACTIVE) */ | 537 | /* 1 is unused (used to be S_HCMD_SYNC_ACTIVE) */ |
538 | #define STATUS_INT_ENABLED 2 | 538 | #define S_INT_ENABLED 2 |
539 | #define STATUS_RF_KILL_HW 3 | 539 | #define S_RF_KILL_HW 3 |
540 | #define STATUS_CT_KILL 4 | 540 | #define S_CT_KILL 4 |
541 | #define STATUS_INIT 5 | 541 | #define S_INIT 5 |
542 | #define STATUS_ALIVE 6 | 542 | #define S_ALIVE 6 |
543 | #define STATUS_READY 7 | 543 | #define S_READY 7 |
544 | #define STATUS_TEMPERATURE 8 | 544 | #define S_TEMPERATURE 8 |
545 | #define STATUS_GEO_CONFIGURED 9 | 545 | #define S_GEO_CONFIGURED 9 |
546 | #define STATUS_EXIT_PENDING 10 | 546 | #define S_EXIT_PENDING 10 |
547 | #define STATUS_STATISTICS 12 | 547 | #define S_STATISTICS 12 |
548 | #define STATUS_SCANNING 13 | 548 | #define S_SCANNING 13 |
549 | #define STATUS_SCAN_ABORTING 14 | 549 | #define S_SCAN_ABORTING 14 |
550 | #define STATUS_SCAN_HW 15 | 550 | #define S_SCAN_HW 15 |
551 | #define STATUS_POWER_PMI 16 | 551 | #define S_POWER_PMI 16 |
552 | #define STATUS_FW_ERROR 17 | 552 | #define S_FW_ERROR 17 |
553 | #define STATUS_CHANNEL_SWITCH_PENDING 18 | 553 | #define S_CHANNEL_SWITCH_PENDING 18 |
554 | 554 | ||
555 | static inline int il_is_ready(struct il_priv *il) | 555 | static inline int il_is_ready(struct il_priv *il) |
556 | { | 556 | { |
557 | /* The adapter is 'ready' if READY and GEO_CONFIGURED bits are | 557 | /* The adapter is 'ready' if READY and GEO_CONFIGURED bits are |
558 | * set but EXIT_PENDING is not */ | 558 | * set but EXIT_PENDING is not */ |
559 | return test_bit(STATUS_READY, &il->status) && | 559 | return test_bit(S_READY, &il->status) && |
560 | test_bit(STATUS_GEO_CONFIGURED, &il->status) && | 560 | test_bit(S_GEO_CONFIGURED, &il->status) && |
561 | !test_bit(STATUS_EXIT_PENDING, &il->status); | 561 | !test_bit(S_EXIT_PENDING, &il->status); |
562 | } | 562 | } |
563 | 563 | ||
564 | static inline int il_is_alive(struct il_priv *il) | 564 | static inline int il_is_alive(struct il_priv *il) |
565 | { | 565 | { |
566 | return test_bit(STATUS_ALIVE, &il->status); | 566 | return test_bit(S_ALIVE, &il->status); |
567 | } | 567 | } |
568 | 568 | ||
569 | static inline int il_is_init(struct il_priv *il) | 569 | static inline int il_is_init(struct il_priv *il) |
570 | { | 570 | { |
571 | return test_bit(STATUS_INIT, &il->status); | 571 | return test_bit(S_INIT, &il->status); |
572 | } | 572 | } |
573 | 573 | ||
574 | static inline int il_is_rfkill_hw(struct il_priv *il) | 574 | static inline int il_is_rfkill_hw(struct il_priv *il) |
575 | { | 575 | { |
576 | return test_bit(STATUS_RF_KILL_HW, &il->status); | 576 | return test_bit(S_RF_KILL_HW, &il->status); |
577 | } | 577 | } |
578 | 578 | ||
579 | static inline int il_is_rfkill(struct il_priv *il) | 579 | static inline int il_is_rfkill(struct il_priv *il) |
@@ -583,7 +583,7 @@ static inline int il_is_rfkill(struct il_priv *il) | |||
583 | 583 | ||
584 | static inline int il_is_ctkill(struct il_priv *il) | 584 | static inline int il_is_ctkill(struct il_priv *il) |
585 | { | 585 | { |
586 | return test_bit(STATUS_CT_KILL, &il->status); | 586 | return test_bit(S_CT_KILL, &il->status); |
587 | } | 587 | } |
588 | 588 | ||
589 | static inline int il_is_ready_rf(struct il_priv *il) | 589 | static inline int il_is_ready_rf(struct il_priv *il) |