backlight: pwm_bl: Add missing curly branches in else branch
authorMatthias Kaehlcke <mka@chromium.org>
Thu, 3 Oct 2019 21:35:02 +0000 (14:35 -0700)
committerLee Jones <lee.jones@linaro.org>
Mon, 14 Oct 2019 07:57:45 +0000 (08:57 +0100)
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>
drivers/video/backlight/pwm_bl.c

index 05d3b38..9c4216f 100644 (file)
@@ -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);