diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2009-07-01 09:17:35 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:02:27 -0400 |
commit | e47a5cddf893815e7da16e3226b959af785d8aaf (patch) | |
tree | 15766b50789f0a9ebffabd8ba0c57f47eff99130 /drivers/net/wireless/rt2x00/rt2400pci.c | |
parent | b623a9f7c488e51dbe4320d8b5cdd0ba242d0067 (diff) |
rt2x00: use wiphy rfkill interface
Remove the input_polldev from rt2x00 and replace it with
the rfkill interface offered by the wiphy structure. This
simplifies the entire rfkill handling in rt2x00 and allows
us to remove the CONFIG_RT2X00_LIB_RFKILL option and always
enables rfkill capabilities.
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/rt2400pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2400pci.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c index 435f945fe64d..d8035e3575e8 100644 --- a/drivers/net/wireless/rt2x00/rt2400pci.c +++ b/drivers/net/wireless/rt2x00/rt2400pci.c | |||
@@ -199,7 +199,6 @@ static const struct rt2x00debug rt2400pci_rt2x00debug = { | |||
199 | }; | 199 | }; |
200 | #endif /* CONFIG_RT2X00_LIB_DEBUGFS */ | 200 | #endif /* CONFIG_RT2X00_LIB_DEBUGFS */ |
201 | 201 | ||
202 | #ifdef CONFIG_RT2X00_LIB_RFKILL | ||
203 | static int rt2400pci_rfkill_poll(struct rt2x00_dev *rt2x00dev) | 202 | static int rt2400pci_rfkill_poll(struct rt2x00_dev *rt2x00dev) |
204 | { | 203 | { |
205 | u32 reg; | 204 | u32 reg; |
@@ -207,9 +206,6 @@ static int rt2400pci_rfkill_poll(struct rt2x00_dev *rt2x00dev) | |||
207 | rt2x00pci_register_read(rt2x00dev, GPIOCSR, ®); | 206 | rt2x00pci_register_read(rt2x00dev, GPIOCSR, ®); |
208 | return rt2x00_get_field32(reg, GPIOCSR_BIT0); | 207 | return rt2x00_get_field32(reg, GPIOCSR_BIT0); |
209 | } | 208 | } |
210 | #else | ||
211 | #define rt2400pci_rfkill_poll NULL | ||
212 | #endif /* CONFIG_RT2X00_LIB_RFKILL */ | ||
213 | 209 | ||
214 | #ifdef CONFIG_RT2X00_LIB_LEDS | 210 | #ifdef CONFIG_RT2X00_LIB_LEDS |
215 | static void rt2400pci_brightness_set(struct led_classdev *led_cdev, | 211 | static void rt2400pci_brightness_set(struct led_classdev *led_cdev, |
@@ -1391,10 +1387,8 @@ static int rt2400pci_init_eeprom(struct rt2x00_dev *rt2x00dev) | |||
1391 | /* | 1387 | /* |
1392 | * Detect if this device has an hardware controlled radio. | 1388 | * Detect if this device has an hardware controlled radio. |
1393 | */ | 1389 | */ |
1394 | #ifdef CONFIG_RT2X00_LIB_RFKILL | ||
1395 | if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO)) | 1390 | if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO)) |
1396 | __set_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags); | 1391 | __set_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags); |
1397 | #endif /* CONFIG_RT2X00_LIB_RFKILL */ | ||
1398 | 1392 | ||
1399 | /* | 1393 | /* |
1400 | * Check if the BBP tuning should be enabled. | 1394 | * Check if the BBP tuning should be enabled. |
@@ -1573,6 +1567,7 @@ static const struct ieee80211_ops rt2400pci_mac80211_ops = { | |||
1573 | .get_tx_stats = rt2x00mac_get_tx_stats, | 1567 | .get_tx_stats = rt2x00mac_get_tx_stats, |
1574 | .get_tsf = rt2400pci_get_tsf, | 1568 | .get_tsf = rt2400pci_get_tsf, |
1575 | .tx_last_beacon = rt2400pci_tx_last_beacon, | 1569 | .tx_last_beacon = rt2400pci_tx_last_beacon, |
1570 | .rfkill_poll = rt2x00mac_rfkill_poll, | ||
1576 | }; | 1571 | }; |
1577 | 1572 | ||
1578 | static const struct rt2x00lib_ops rt2400pci_rt2x00_ops = { | 1573 | static const struct rt2x00lib_ops rt2400pci_rt2x00_ops = { |