|
@@ -152,11 +152,14 @@ static void iwl_led_brightness_set(struct led_classdev *led_cdev,
|
|
{
|
|
{
|
|
struct iwl_priv *priv = container_of(led_cdev, struct iwl_priv, led);
|
|
struct iwl_priv *priv = container_of(led_cdev, struct iwl_priv, led);
|
|
unsigned long on = 0;
|
|
unsigned long on = 0;
|
|
|
|
+ unsigned long off = 0;
|
|
|
|
|
|
if (brightness > 0)
|
|
if (brightness > 0)
|
|
on = IWL_LED_SOLID;
|
|
on = IWL_LED_SOLID;
|
|
|
|
+ else
|
|
|
|
+ off = IWL_LED_SOLID;
|
|
|
|
|
|
- iwl_led_cmd(priv, on, 0);
|
|
|
|
|
|
+ iwl_led_cmd(priv, on, off);
|
|
}
|
|
}
|
|
|
|
|
|
static int iwl_led_blink_set(struct led_classdev *led_cdev,
|
|
static int iwl_led_blink_set(struct led_classdev *led_cdev,
|