Commit 4bb7fcce authored by Guido Gunther's avatar Guido Gunther
Browse files

leds: ledtrig-backlight: Properly pass on max_brightness property

We had that hardcoded to LED_FULL (which did not matter until

Signed-off-by: Guido Gunther's avatarGuido Günther <>
parent c38f9188
Pipeline #50295 passed with stage
in 37 minutes and 27 seconds
......@@ -146,7 +146,7 @@ static int bl_trig_activate(struct led_classdev *led)
memset(&props, 0, sizeof(struct backlight_properties));
props.max_brightness = LED_FULL;
props.max_brightness = led->max_brightness;
props.brightness = led->brightness;
n->backlight_device = backlight_device_register(led->name,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment