diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-09-08 13:07:15 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-11 15:53:38 -0400 |
commit | 771fd565195727d12f0b75d918b9fcb9f33a5476 (patch) | |
tree | d162c46a5c7a4ba57927d70257b7eaafb0729909 /drivers/net/wireless/rt2x00/rt2500usb.c | |
parent | 58169529986e81e0d477ce11eb8b91f025f649c1 (diff) |
rt2x00: Make rt2x00 LEDS invisible config option
There isn't really a good reason to have the LED
configuration options selectable per driver, lets
make it default 'y' and make it depend on the
NEW_LEDS and LEDS_CLASS interface.
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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index 1cfda456b0ea..cb5f2d01a9c3 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -288,7 +288,7 @@ static const struct rt2x00debug rt2500usb_rt2x00debug = { | |||
288 | }; | 288 | }; |
289 | #endif /* CONFIG_RT2X00_LIB_DEBUGFS */ | 289 | #endif /* CONFIG_RT2X00_LIB_DEBUGFS */ |
290 | 290 | ||
291 | #ifdef CONFIG_RT2500USB_LEDS | 291 | #ifdef CONFIG_RT2X00_LIB_LEDS |
292 | static void rt2500usb_brightness_set(struct led_classdev *led_cdev, | 292 | static void rt2500usb_brightness_set(struct led_classdev *led_cdev, |
293 | enum led_brightness brightness) | 293 | enum led_brightness brightness) |
294 | { | 294 | { |
@@ -333,7 +333,7 @@ static void rt2500usb_init_led(struct rt2x00_dev *rt2x00dev, | |||
333 | led->led_dev.blink_set = rt2500usb_blink_set; | 333 | led->led_dev.blink_set = rt2500usb_blink_set; |
334 | led->flags = LED_INITIALIZED; | 334 | led->flags = LED_INITIALIZED; |
335 | } | 335 | } |
336 | #endif /* CONFIG_RT2500USB_LEDS */ | 336 | #endif /* CONFIG_RT2X00_LIB_LEDS */ |
337 | 337 | ||
338 | /* | 338 | /* |
339 | * Configuration handlers. | 339 | * Configuration handlers. |
@@ -1473,14 +1473,14 @@ static int rt2500usb_init_eeprom(struct rt2x00_dev *rt2x00dev) | |||
1473 | /* | 1473 | /* |
1474 | * Store led mode, for correct led behaviour. | 1474 | * Store led mode, for correct led behaviour. |
1475 | */ | 1475 | */ |
1476 | #ifdef CONFIG_RT2500USB_LEDS | 1476 | #ifdef CONFIG_RT2X00_LIB_LEDS |
1477 | value = rt2x00_get_field16(eeprom, EEPROM_ANTENNA_LED_MODE); | 1477 | value = rt2x00_get_field16(eeprom, EEPROM_ANTENNA_LED_MODE); |
1478 | 1478 | ||
1479 | rt2500usb_init_led(rt2x00dev, &rt2x00dev->led_radio, LED_TYPE_RADIO); | 1479 | rt2500usb_init_led(rt2x00dev, &rt2x00dev->led_radio, LED_TYPE_RADIO); |
1480 | if (value == LED_MODE_TXRX_ACTIVITY) | 1480 | if (value == LED_MODE_TXRX_ACTIVITY) |
1481 | rt2500usb_init_led(rt2x00dev, &rt2x00dev->led_qual, | 1481 | rt2500usb_init_led(rt2x00dev, &rt2x00dev->led_qual, |
1482 | LED_TYPE_ACTIVITY); | 1482 | LED_TYPE_ACTIVITY); |
1483 | #endif /* CONFIG_RT2500USB_LEDS */ | 1483 | #endif /* CONFIG_RT2X00_LIB_LEDS */ |
1484 | 1484 | ||
1485 | /* | 1485 | /* |
1486 | * Check if the BBP tuning should be disabled. | 1486 | * Check if the BBP tuning should be disabled. |