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:
parent
de6f2a7fa2
commit
349ee12287
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue