aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt61pci.c
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2009-07-01 09:17:35 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-10 15:02:27 -0400
commite47a5cddf893815e7da16e3226b959af785d8aaf (patch)
tree15766b50789f0a9ebffabd8ba0c57f47eff99130 /drivers/net/wireless/rt2x00/rt61pci.c
parentb623a9f7c488e51dbe4320d8b5cdd0ba242d0067 (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/rt61pci.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index 49b29ff90c47..8a49d99df682 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -237,7 +237,6 @@ static const struct rt2x00debug rt61pci_rt2x00debug = {
237}; 237};
238#endif /* CONFIG_RT2X00_LIB_DEBUGFS */ 238#endif /* CONFIG_RT2X00_LIB_DEBUGFS */
239 239
240#ifdef CONFIG_RT2X00_LIB_RFKILL
241static int rt61pci_rfkill_poll(struct rt2x00_dev *rt2x00dev) 240static int rt61pci_rfkill_poll(struct rt2x00_dev *rt2x00dev)
242{ 241{
243 u32 reg; 242 u32 reg;
@@ -245,9 +244,6 @@ static int rt61pci_rfkill_poll(struct rt2x00_dev *rt2x00dev)
245 rt2x00pci_register_read(rt2x00dev, MAC_CSR13, &reg); 244 rt2x00pci_register_read(rt2x00dev, MAC_CSR13, &reg);
246 return rt2x00_get_field32(reg, MAC_CSR13_BIT5); 245 return rt2x00_get_field32(reg, MAC_CSR13_BIT5);
247} 246}
248#else
249#define rt61pci_rfkill_poll NULL
250#endif /* CONFIG_RT2X00_LIB_RFKILL */
251 247
252#ifdef CONFIG_RT2X00_LIB_LEDS 248#ifdef CONFIG_RT2X00_LIB_LEDS
253static void rt61pci_brightness_set(struct led_classdev *led_cdev, 249static void rt61pci_brightness_set(struct led_classdev *led_cdev,
@@ -2338,10 +2334,8 @@ static int rt61pci_init_eeprom(struct rt2x00_dev *rt2x00dev)
2338 /* 2334 /*
2339 * Detect if this device has an hardware controlled radio. 2335 * Detect if this device has an hardware controlled radio.
2340 */ 2336 */
2341#ifdef CONFIG_RT2X00_LIB_RFKILL
2342 if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO)) 2337 if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO))
2343 __set_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags); 2338 __set_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags);
2344#endif /* CONFIG_RT2X00_LIB_RFKILL */
2345 2339
2346 /* 2340 /*
2347 * Read frequency offset and RF programming sequence. 2341 * Read frequency offset and RF programming sequence.
@@ -2728,6 +2722,7 @@ static const struct ieee80211_ops rt61pci_mac80211_ops = {
2728 .conf_tx = rt61pci_conf_tx, 2722 .conf_tx = rt61pci_conf_tx,
2729 .get_tx_stats = rt2x00mac_get_tx_stats, 2723 .get_tx_stats = rt2x00mac_get_tx_stats,
2730 .get_tsf = rt61pci_get_tsf, 2724 .get_tsf = rt61pci_get_tsf,
2725 .rfkill_poll = rt2x00mac_rfkill_poll,
2731}; 2726};
2732 2727
2733static const struct rt2x00lib_ops rt61pci_rt2x00_ops = { 2728static const struct rt2x00lib_ops rt61pci_rt2x00_ops = {