aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2019-10-03 14:35:02 -0700
committerLee Jones <lee.jones@linaro.org>2019-10-14 08:57:45 +0100
commit349ee1228729df5c2a0cb33506cad2661e40e750 (patch)
tree54be83b8e404a4fde6983de49ca2323df5fb07ad
parentbacklight: pwm_bl: Don't assign levels table repeatedly (diff)
downloadlinux-dev-349ee1228729df5c2a0cb33506cad2661e40e750.tar.xz
linux-dev-349ee1228729df5c2a0cb33506cad2661e40e750.zip
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>
-rw-r--r--drivers/video/backlight/pwm_bl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c
index 05d3b3802658..9c4216f08c5a 100644
--- a/drivers/video/backlight/pwm_bl.c
+++ b/drivers/video/backlight/pwm_bl.c
@@ -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);