@@ -118,7 +118,7 @@ ath5k_led_brightness_set(struct led_classdev *led_dev,
struct ath5k_led *led = container_of(led_dev, struct ath5k_led,
led_dev);
- if (brightness == LED_OFF)
+ if (brightness == 0)
ath5k_led_off(led->ah);
else
ath5k_led_on(led->ah);
@@ -52,7 +52,7 @@ static void ath_led_brightness(struct led_classdev *led_cdev,
enum led_brightness brightness)
{
struct ath_softc *sc = container_of(led_cdev, struct ath_softc, led_cdev);
- u32 val = (brightness == LED_OFF);
+ u32 val = (brightness == 0);
if (sc->sc_ah->config.led_active_high)
val = !val;
@@ -65,7 +65,7 @@ void ath_deinit_leds(struct ath_softc *sc)
if (!sc->led_registered)
return;
- ath_led_brightness(&sc->led_cdev, LED_OFF);
+ ath_led_brightness(&sc->led_cdev, 0);
led_classdev_unregister(&sc->led_cdev);
ath9k_hw_gpio_free(sc->sc_ah, sc->sc_ah->led_pin);
@@ -230,7 +230,7 @@ void ath9k_led_work(struct work_struct *work)
led_work);
ath9k_hw_set_gpio(priv->ah, priv->ah->led_pin,
- (priv->brightness == LED_OFF));
+ (priv->brightness == 0));
}
static void ath9k_led_brightness(struct led_classdev *led_cdev,
@@ -250,7 +250,7 @@ void ath9k_deinit_leds(struct ath9k_htc_priv *priv)
if (!priv->led_registered)
return;
- ath9k_led_brightness(&priv->led_cdev, LED_OFF);
+ ath9k_led_brightness(&priv->led_cdev, 0);
led_classdev_unregister(&priv->led_cdev);
cancel_work_sync(&priv->led_work);