aboutsummaryrefslogtreecommitdiff
path: root/drivers/leds/ledtrig-default-on.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/ledtrig-default-on.c')
-rw-r--r--drivers/leds/ledtrig-default-on.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/ledtrig-default-on.c b/drivers/leds/ledtrig-default-on.c
index 92995e40cfa..a4ef54b9d50 100644
--- a/drivers/leds/ledtrig-default-on.c
+++ b/drivers/leds/ledtrig-default-on.c
@@ -19,7 +19,7 @@
static void defon_trig_activate(struct led_classdev *led_cdev)
{
- led_set_brightness(led_cdev, LED_FULL);
+ led_set_brightness(led_cdev, led_cdev->max_brightness);
}
static struct led_trigger defon_led_trigger = {