mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
rfkill: remove deprecated state constants
I only did superficial review, but these constants are stupid to have and without proper warnings nobody will review the code anyway, no amount of shouting will help. Also fix wimax to use correct states. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
f4a11bb0c2
commit
c1c6b14b22
4 changed files with 8 additions and 16 deletions
|
@ -52,14 +52,6 @@ enum rfkill_state {
|
|||
RFKILL_STATE_MAX, /* marker for last valid state */
|
||||
};
|
||||
|
||||
/*
|
||||
* These are DEPRECATED, drivers using them should be verified to
|
||||
* comply with the rfkill usage guidelines in Documentation/rfkill.txt
|
||||
* and then converted to use the new names for rfkill_state
|
||||
*/
|
||||
#define RFKILL_STATE_OFF RFKILL_STATE_SOFT_BLOCKED
|
||||
#define RFKILL_STATE_ON RFKILL_STATE_UNBLOCKED
|
||||
|
||||
/**
|
||||
* struct rfkill - rfkill control structure.
|
||||
* @name: Name of the switch.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue