backlight: pwm_bl: Add missing curly branches in else branch

Add curly braces to an 'else' branch in pwm_backlight_update_status()
to match the corresponding 'if' branch.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
Matthias Kaehlcke 2019-10-03 14:35:02 -07:00 committed by Lee Jones
parent de6f2a7fa2
commit 349ee12287
1 changed files with 2 additions and 1 deletions

View File

@ -125,8 +125,9 @@ static int pwm_backlight_update_status(struct backlight_device *bl)
state.duty_cycle = compute_duty_cycle(pb, brightness); state.duty_cycle = compute_duty_cycle(pb, brightness);
pwm_apply_state(pb->pwm, &state); pwm_apply_state(pb->pwm, &state);
pwm_backlight_power_on(pb); pwm_backlight_power_on(pb);
} else } else {
pwm_backlight_power_off(pb); pwm_backlight_power_off(pb);
}
if (pb->notify_after) if (pb->notify_after)
pb->notify_after(pb->dev, brightness); pb->notify_after(pb->dev, brightness);