diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2009-01-03 13:56:02 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:59:47 -0500 |
commit | cca3e99861e883358ceb39ad17c9eaee082138a5 (patch) | |
tree | 7876976ddc1e60e510fdf905ac9fd3fca939d1d7 /drivers/net/wireless/rt2x00/rt2x00.h | |
parent | c97c92d92715ea4ea2d7cf00957e8a014439bdd8 (diff) |
rt2x00: Replace RFKILL with INPUT
As discussed on linux-wireless rt2x00 does not offer a true RFKILL key,
for that reason RFKILL support should be entirely removed.
The key which is attached to the hardware should be treated as normal
input device instead. Implement input_poll_dev support to poll the device
frequently. When the key status has changed report it as a SW event.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 890c7216cf38..27c0f335f403 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <linux/leds.h> | 33 | #include <linux/leds.h> |
34 | #include <linux/mutex.h> | 34 | #include <linux/mutex.h> |
35 | #include <linux/etherdevice.h> | 35 | #include <linux/etherdevice.h> |
36 | #include <linux/input-polldev.h> | ||
36 | 37 | ||
37 | #include <net/mac80211.h> | 38 | #include <net/mac80211.h> |
38 | 39 | ||
@@ -638,8 +639,8 @@ struct rt2x00_dev { | |||
638 | unsigned long rfkill_state; | 639 | unsigned long rfkill_state; |
639 | #define RFKILL_STATE_ALLOCATED 1 | 640 | #define RFKILL_STATE_ALLOCATED 1 |
640 | #define RFKILL_STATE_REGISTERED 2 | 641 | #define RFKILL_STATE_REGISTERED 2 |
641 | struct rfkill *rfkill; | 642 | #define RFKILL_STATE_BLOCKED 3 |
642 | struct delayed_work rfkill_work; | 643 | struct input_polled_dev *rfkill_poll_dev; |
643 | #endif /* CONFIG_RT2X00_LIB_RFKILL */ | 644 | #endif /* CONFIG_RT2X00_LIB_RFKILL */ |
644 | 645 | ||
645 | /* | 646 | /* |