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
now).

Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
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.type = BACKLIGHT_PLATFORM;
props.max_brightness = LED_FULL;
props.max_brightness = led->max_brightness;
props.brightness = led->brightness;
n->backlight_device = backlight_device_register(led->name,
led->dev,
......
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