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/rt73usb.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/rt73usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index c18848836f2d..ad2898ca8677 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -183,7 +183,6 @@ static const struct rt2x00debug rt73usb_rt2x00debug = { | |||
183 | }; | 183 | }; |
184 | #endif /* CONFIG_RT2X00_LIB_DEBUGFS */ | 184 | #endif /* CONFIG_RT2X00_LIB_DEBUGFS */ |
185 | 185 | ||
186 | #ifdef CONFIG_RT2X00_LIB_RFKILL | ||
187 | static int rt73usb_rfkill_poll(struct rt2x00_dev *rt2x00dev) | 186 | static int rt73usb_rfkill_poll(struct rt2x00_dev *rt2x00dev) |
188 | { | 187 | { |
189 | u32 reg; | 188 | u32 reg; |
@@ -191,9 +190,6 @@ static int rt73usb_rfkill_poll(struct rt2x00_dev *rt2x00dev) | |||
191 | rt2x00usb_register_read(rt2x00dev, MAC_CSR13, ®); | 190 | rt2x00usb_register_read(rt2x00dev, MAC_CSR13, ®); |
192 | return rt2x00_get_field32(reg, MAC_CSR13_BIT7); | 191 | return rt2x00_get_field32(reg, MAC_CSR13_BIT7); |
193 | } | 192 | } |
194 | #else | ||
195 | #define rt73usb_rfkill_poll NULL | ||
196 | #endif /* CONFIG_RT2X00_LIB_RFKILL */ | ||
197 | 193 | ||
198 | #ifdef CONFIG_RT2X00_LIB_LEDS | 194 | #ifdef CONFIG_RT2X00_LIB_LEDS |
199 | static void rt73usb_brightness_set(struct led_classdev *led_cdev, | 195 | static void rt73usb_brightness_set(struct led_classdev *led_cdev, |
@@ -1863,10 +1859,8 @@ static int rt73usb_init_eeprom(struct rt2x00_dev *rt2x00dev) | |||
1863 | /* | 1859 | /* |
1864 | * Detect if this device has an hardware controlled radio. | 1860 | * Detect if this device has an hardware controlled radio. |
1865 | */ | 1861 | */ |
1866 | #ifdef CONFIG_RT2X00_LIB_RFKILL | ||
1867 | if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO)) | 1862 | if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO)) |
1868 | __set_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags); | 1863 | __set_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags); |
1869 | #endif /* CONFIG_RT2X00_LIB_RFKILL */ | ||
1870 | 1864 | ||
1871 | /* | 1865 | /* |
1872 | * Read frequency offset. | 1866 | * Read frequency offset. |
@@ -2253,6 +2247,7 @@ static const struct ieee80211_ops rt73usb_mac80211_ops = { | |||
2253 | .conf_tx = rt73usb_conf_tx, | 2247 | .conf_tx = rt73usb_conf_tx, |
2254 | .get_tx_stats = rt2x00mac_get_tx_stats, | 2248 | .get_tx_stats = rt2x00mac_get_tx_stats, |
2255 | .get_tsf = rt73usb_get_tsf, | 2249 | .get_tsf = rt73usb_get_tsf, |
2250 | .rfkill_poll = rt2x00mac_rfkill_poll, | ||
2256 | }; | 2251 | }; |
2257 | 2252 | ||
2258 | static const struct rt2x00lib_ops rt73usb_rt2x00_ops = { | 2253 | static const struct rt2x00lib_ops rt73usb_rt2x00_ops = { |