ARM: SAMSUNG: Add suspend/resume support for S3C PWM driver
authorVasily Khoruzhick <anarsoul@gmail.com>
Mon, 15 Mar 2010 14:27:08 +0000 (16:27 +0200)
committerBen Dooks <ben-linux@fluff.org>
Mon, 15 Mar 2010 22:43:33 +0000 (22:43 +0000)
commite79032aa75af76a14e2cdd973b199855e7761881
tree0dfefe4a63ce0afafd782eda859be26250b93f20
parent664e87e47e086962a832f9a613a8fd4042a02ac1
ARM: SAMSUNG: Add suspend/resume support for S3C PWM driver

Reset period_ns and duty_ns values in suspend handler to avoid skip of
configuration if same values passed to pwm_config;
Restore invertion bit in resume handler.

Without this patch PWM works incorrectly after resume from suspend.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-samsung/pwm.c