mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
video: backlight: pwm_bl: fix backlight polarity
Backlight polarity not works without pwm_adjust_config. Change-Id: I11e5eefe340f758b6721021f13238306b3721270 Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
@@ -601,6 +601,8 @@ static int pwm_backlight_probe(struct platform_device *pdev)
|
||||
pb->scale = data->max_brightness;
|
||||
}
|
||||
|
||||
pwm_adjust_config(pb->pwm);
|
||||
|
||||
pb->lth_brightness = data->lth_brightness * (div_u64(state.period,
|
||||
pb->scale));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user