]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: s3c24xx: Switch to atomic pwm API in rx1950
authorUwe Kleine-König <uwe@kleine-koenig.org>
Mon, 20 Jan 2020 19:33:28 +0000 (20:33 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Tue, 21 Jan 2020 19:56:47 +0000 (20:56 +0100)
commit7af79ab95d3cff5e725b45d65bbc981d29530a6b
tree3bfa6496b347b593566c5f91555a9aa3dfc711c7
parentee17a3e318d4db859b19784e91e0062e7686c12f
ARM: s3c24xx: Switch to atomic pwm API in rx1950

Stop using the legacy PWM API which only still exists because there are
some users left.

Note this change make use of the fact that the value of struct
pwm_state::duty_cycle doesn't matter for a disabled PWM and so its value
can stay constant simplifying the code a bit.

A side effect of the conversion is that the pwm isn't stopped in
rx1950_backlight_init() by the call to pwm_apply_args() just before
reenabling it when rx1950_lcd_power(1) is called.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/mach-s3c24xx/mach-rx1950.c