From: Mark Yao Date: Fri, 17 Mar 2017 09:31:33 +0000 (+0800) Subject: video: backlight: pwm_bl: fix backlight polarity X-Git-Tag: firefly_0821_release~288 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=firefly-linux-kernel-4.4.55.git;a=commitdiff_plain;h=e16d8ea93462dee7a3371055c283b65176109a15 video: backlight: pwm_bl: fix backlight polarity Backlight polarity not works without pwm_adjust_config. Change-Id: I11e5eefe340f758b6721021f13238306b3721270 Signed-off-by: Mark Yao --- diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index aab5e4d3e6ff..4cee1fcd246d 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -307,6 +307,7 @@ static int pwm_backlight_probe(struct platform_device *pdev) dev_dbg(&pdev->dev, "got pwm for backlight\n"); + 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,