diff options
Diffstat (limited to 'drivers/leds/ledtrig-timer.c')
-rw-r--r-- | drivers/leds/ledtrig-timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/ledtrig-timer.c b/drivers/leds/ledtrig-timer.c index 3d6531396dda..3b83406de752 100644 --- a/drivers/leds/ledtrig-timer.c +++ b/drivers/leds/ledtrig-timer.c | |||
@@ -166,7 +166,7 @@ static void timer_trig_activate(struct led_classdev *led_cdev) | |||
166 | 166 | ||
167 | timer_data->brightness_on = led_get_brightness(led_cdev); | 167 | timer_data->brightness_on = led_get_brightness(led_cdev); |
168 | if (timer_data->brightness_on == LED_OFF) | 168 | if (timer_data->brightness_on == LED_OFF) |
169 | timer_data->brightness_on = LED_FULL; | 169 | timer_data->brightness_on = led_cdev->max_brightness; |
170 | led_cdev->trigger_data = timer_data; | 170 | led_cdev->trigger_data = timer_data; |
171 | 171 | ||
172 | init_timer(&timer_data->timer); | 172 | init_timer(&timer_data->timer); |