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)
commit5ec6fd39f5f23278c6c2f528b412dcff6a29eb59
tree3bfa6496b347b593566c5f91555a9aa3dfc711c7
parent45984f0c70ccc03e09f97ee5d0749396547b6594
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