Skip to content

Commit

Permalink
backlight: pwm_bl: Add missing curly branches in else branch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthias Kaehlcke authored and Lee Jones committed Oct 14, 2019
1 parent de6f2a7 commit 349ee12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/video/backlight/pwm_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ static int pwm_backlight_update_status(struct backlight_device *bl)
state.duty_cycle = compute_duty_cycle(pb, brightness);
pwm_apply_state(pb->pwm, &state);
pwm_backlight_power_on(pb);
} else
} else {
pwm_backlight_power_off(pb);
}

if (pb->notify_after)
pb->notify_after(pb->dev, brightness);
Expand Down

0 comments on commit 349ee12

Please sign in to comment.