]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: samsung: do not set manual update bit in pwm_samsung_config
authorAjay Kumar <ajaykumar.rs@samsung.com>
Mon, 12 May 2014 14:56:21 +0000 (20:26 +0530)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 21 May 2014 10:24:00 +0000 (12:24 +0200)
commitd07adb7cece82da73e74bc4c470cbf58cbda8244
treeaf40a51e8b83d25471aaac0b41b57b4d707c214d
parentd3051bfe2190ce3d64d675b3e7ad525c64d411db
pwm: samsung: do not set manual update bit in pwm_samsung_config

pwm_samsung_config() sets the manual update bit via a call to the
pwm_samsung_enable() function even when the channel is already running.
This causes noticable flicker on display if we try to change the
backlight brightness from minimum to maximum, continuously.

So, we remove the call to pwm_samsung_enable() from pwm_samsung_config
to avoid the flicker and this change doesn't harm normal working since
the pwm-backlight driver already calls pwm_samsung_enable() where
needed.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-samsung.c