From ff707b3d8d98a52db3b10bc0d1b93ec6da348464 Mon Sep 17 00:00:00 2001 From: Mark Yao Date: Fri, 17 Mar 2017 17:31:33 +0800 Subject: [PATCH] video: backlight: pwm_bl: fix backlight polarity Backlight polarity not works without pwm_adjust_config. Change-Id: I11e5eefe340f758b6721021f13238306b3721270 Signed-off-by: Mark Yao --- drivers/video/backlight/pwm_bl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index 800e605475e6..144c0cc65a34 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -559,6 +559,8 @@ static int pwm_backlight_probe(struct platform_device *pdev) pb->levels = data->levels; } + pwm_adjust_config(pb->pwm); + /* * The DT case will set the pwm_period_ns field to 0 and store the * period, parsed from the DT, in the PWM device. For the non-DT case,