aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2500usb.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/rt2500usb.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/rt2500usb.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2500usb.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c
index 66daf68ff0ee..795706d63b94 100644
--- a/drivers/net/wireless/rt2x00/rt2500usb.c
+++ b/drivers/net/wireless/rt2x00/rt2500usb.c
@@ -277,7 +277,6 @@ static const struct rt2x00debug rt2500usb_rt2x00debug = {
277}; 277};
278#endif /* CONFIG_RT2X00_LIB_DEBUGFS */ 278#endif /* CONFIG_RT2X00_LIB_DEBUGFS */
279 279
280#ifdef CONFIG_RT2X00_LIB_RFKILL
281static int rt2500usb_rfkill_poll(struct rt2x00_dev *rt2x00dev) 280static int rt2500usb_rfkill_poll(struct rt2x00_dev *rt2x00dev)
282{ 281{
283 u16 reg; 282 u16 reg;
@@ -285,9 +284,6 @@ static int rt2500usb_rfkill_poll(struct rt2x00_dev *rt2x00dev)
285 rt2500usb_register_read(rt2x00dev, MAC_CSR19, &reg); 284 rt2500usb_register_read(rt2x00dev, MAC_CSR19, &reg);
286 return rt2x00_get_field32(reg, MAC_CSR19_BIT7); 285 return rt2x00_get_field32(reg, MAC_CSR19_BIT7);
287} 286}
288#else
289#define rt2500usb_rfkill_poll NULL
290#endif /* CONFIG_RT2X00_LIB_RFKILL */
291 287
292#ifdef CONFIG_RT2X00_LIB_LEDS 288#ifdef CONFIG_RT2X00_LIB_LEDS
293static void rt2500usb_brightness_set(struct led_classdev *led_cdev, 289static void rt2500usb_brightness_set(struct led_classdev *led_cdev,
@@ -1601,10 +1597,8 @@ static int rt2500usb_init_eeprom(struct rt2x00_dev *rt2x00dev)
1601 /* 1597 /*
1602 * Detect if this device has an hardware controlled radio. 1598 * Detect if this device has an hardware controlled radio.
1603 */ 1599 */
1604#ifdef CONFIG_RT2X00_LIB_RFKILL
1605 if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO)) 1600 if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO))
1606 __set_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags); 1601 __set_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags);
1607#endif /* CONFIG_RT2X00_LIB_RFKILL */
1608 1602
1609 /* 1603 /*
1610 * Check if the BBP tuning should be disabled. 1604 * Check if the BBP tuning should be disabled.
@@ -1905,6 +1899,7 @@ static const struct ieee80211_ops rt2500usb_mac80211_ops = {
1905 .bss_info_changed = rt2x00mac_bss_info_changed, 1899 .bss_info_changed = rt2x00mac_bss_info_changed,
1906 .conf_tx = rt2x00mac_conf_tx, 1900 .conf_tx = rt2x00mac_conf_tx,
1907 .get_tx_stats = rt2x00mac_get_tx_stats, 1901 .get_tx_stats = rt2x00mac_get_tx_stats,
1902 .rfkill_poll = rt2x00mac_rfkill_poll,
1908}; 1903};
1909 1904
1910static const struct rt2x00lib_ops rt2500usb_rt2x00_ops = { 1905static const struct rt2x00lib_ops rt2500usb_rt2x00_ops = {